From 623a18db4b0f46c80c29e93a0ad0a2fcbfec71dc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Sep 1998 00:23:28 +0000 Subject: More 64 bit stuff - now the fcntl locks are 64 bit clean. Nearly at the stage where I can expose the 64-bit-ness to the NT clients.... Jeremy. (This used to be commit 422f1dd45074c0e28203aca5952e57bbe56676b6) --- source3/passdb/smbpassfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/passdb') 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); -- cgit