From: Andrew Bartlett Date: Wed, 28 Mar 2012 02:53:37 +0000 (+1100) Subject: build: Remove unused GLIBC_HACK_FCNTL64 X-Git-Tag: ldb-1.1.5~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22d9450100fd33ef3cc1fcb0fb92a1a20da5be75;p=thirdparty%2Fsamba.git build: Remove unused GLIBC_HACK_FCNTL64 This is not set from anywhere, and refers to Red Hat 7.0, which is really, really old now. Andrew Bartlett --- diff --git a/source3/include/includes.h b/source3/include/includes.h index b0c2a4aabc2..8e5b1cd41fe 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -488,19 +488,6 @@ typedef char fstring[FSTRING_LEN]; #define MAX_SEC_CTX_DEPTH 8 /* Maximum number of security contexts */ -#ifdef GLIBC_HACK_FCNTL64 -/* this is a gross hack. 64 bit locking is completely screwed up on - i386 Linux in glibc 2.1.95 (which ships with RedHat 7.0). This hack - "fixes" the problem with the current 2.4.0test kernels -*/ -#define fcntl fcntl64 -#undef F_SETLKW -#undef F_SETLK -#define F_SETLK 13 -#define F_SETLKW 14 -#endif - - /* add varargs prototypes with printf checking */ /*PRINTFLIKE2 */ int fdprintf(int , const char *, ...) PRINTF_ATTRIBUTE(2,3);