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/configure.in | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index 6904155a9d..a1992c0fe0 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -174,7 +174,7 @@ echo $ac_n "checking for 64 bit off_t ... $ac_c" AC_TRY_RUN([#include #include main() { exit((sizeof(off_t) == 8) ? 0 : 1); }], -echo yes;AC_DEFINE(SIZEOF_OFF_T,8) +echo yes;AC_DEFINE(SIZEOF_OFF_T,8), echo no) echo $ac_n "checking for off64_t ... $ac_c" @@ -315,6 +315,28 @@ AC_TRY_RUN([#include "tests/fcntl_lock.c"], echo yes;AC_DEFINE(HAVE_FCNTL_LOCK), echo no) +echo $ac_n "checking for 64 bit fcntl locking ... $ac_c" +AC_TRY_RUN([ +#include +#include + +#ifdef HAVE_FCNTL_H +#include +#endif + +#ifdef HAVE_SYS_FCNTL_H +#include +#endif +main() { struct flock64 fl64; +#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64) +exit(0); +#else +exit(1); +#endif +}], + echo yes;AC_DEFINE(HAVE_STRUCT_FLOCK64), + echo no) + echo $ac_n "checking for sysv ipc ... $ac_c" AC_TRY_RUN([#include "tests/sysv_ipc.c"], echo yes;AC_DEFINE(HAVE_SYSV_IPC), -- cgit