From 1ac7f071ce2191599b99eddfb4fb595d2d1f474f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 13:32:54 +1100 Subject: build: Remove SMB_F* locking defines --- source3/lib/pidfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/pidfile.c') diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index f1c89ebaf3..ec2044f327 100644 --- a/source3/lib/pidfile.c +++ b/source3/lib/pidfile.c @@ -92,7 +92,7 @@ pid_t pidfile_pid(const char *program_name) goto noproc; } - if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_RDLCK)) { + if (fcntl_lock(fd,F_SETLK,0,1,F_RDLCK)) { /* we could get the lock - it can't be a Samba process */ goto noproc; } @@ -155,7 +155,7 @@ void pidfile_create(const char *program_name) exit(1); } - if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)==False) { + if (fcntl_lock(fd,F_SETLK,0,1,F_WRLCK)==False) { DEBUG(0,("ERROR: %s : fcntl lock of file %s failed. Error was %s\n", name, pidFile_name, strerror(errno))); exit(1); -- cgit