diff options
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/smbpassfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/smbpassfile.c b/source3/passdb/smbpassfile.c index 49cf194cc6..dcb69eb43a 100644 --- a/source3/passdb/smbpassfile.c +++ b/source3/passdb/smbpassfile.c @@ -40,7 +40,7 @@ static void gotalarm_sig(void) BOOL do_file_lock(int fd, int waitsecs, int type) { - struct flock lock; + SMB_STRUCT_FLOCK lock; int ret; gotalarm = 0; @@ -53,7 +53,7 @@ BOOL do_file_lock(int fd, int waitsecs, int type) lock.l_pid = 0; alarm(5); - ret = fcntl(fd, F_SETLKW, &lock); + ret = fcntl(fd, SMB_F_SETLKW, &lock); alarm(0); CatchSignal(SIGALRM, SIGNAL_CAST SIG_DFL); |