1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00

added a hack to get 64 bit locking working with the broken fcntl()

call in glibc 2.1.95. This hack only gets enabled if you define
GLIBC_HACK_FCNTL64
This commit is contained in:
Andrew Tridgell
-
parent 1ece7f1ffd
commit d8b9ec741c
2 changed files with 27 additions and 0 deletions

View File

@@ -951,5 +951,18 @@ extern int DEBUGLEVEL;
#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
#endif /* _INCLUDES_H */