mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
on Linux force fcntl/mmap based shared memory and on other systems
force IPC/shmem based shared memory.
(This used to be commit ef5f752a4a
)
This commit is contained in:
parent
e67a8d9d98
commit
5377f7ab3b
@ -46,6 +46,19 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* if we have both SYSV IPC and shared mmap then we need to choose. For most
|
||||
systems it is much faster to use SYSV IPC, but under Linux it is
|
||||
about 5 times faster to use fcntl, so for Linux systems we force
|
||||
fcntl based locking */
|
||||
#if (defined(HAVE_SYSV_IPC) && defined(HAVE_SHARED_MMAP))
|
||||
# ifdef LINUX
|
||||
# undef HAVE_SYSV_IPC
|
||||
# else
|
||||
# undef HAVE_SHARED_MMAP
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef TIME_WITH_SYS_TIME
|
||||
|
Loading…
Reference in New Issue
Block a user