diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-12-15 03:18:06 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-12-15 03:18:06 +0000 |
commit | e57e7bb6b82f2be9d448b0d448e1f9763e6b8488 (patch) | |
tree | 28b0c38f05d0ad86459ebf979461838a262f838a /source/include | |
parent | ac84e02b5828a075806c6a6b4da563886f0fd64b (diff) | |
download | samba-e57e7bb6b82f2be9d448b0d448e1f9763e6b8488.tar.gz samba-e57e7bb6b82f2be9d448b0d448e1f9763e6b8488.tar.xz samba-e57e7bb6b82f2be9d448b0d448e1f9763e6b8488.zip |
in 2.0 branch:
on Linux force fcntl/mmap based shared memory and on other systems
force IPC/shmem based shared memory.
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/includes.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index bf85bcc0f4a..20d784e19df 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -55,6 +55,17 @@ #endif #endif /* RELIANTUNIX */ +/* 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> |