diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-02 14:13:14 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-02 15:56:41 +1000 |
commit | 75c03b332ce42d396f95b1ea49a58c25f989c021 (patch) | |
tree | 205809882a93028a19ebcd999e0eed3cc9af4359 | |
parent | 80913ae2a88e0e9f5730f565ed73c8cb77be123a (diff) | |
download | samba-75c03b332ce42d396f95b1ea49a58c25f989c021.tar.gz samba-75c03b332ce42d396f95b1ea49a58c25f989c021.tar.bz2 samba-75c03b332ce42d396f95b1ea49a58c25f989c021.zip |
libreplace: Add missing tests for HAVE_MREMAP and HAVE_SHARED_MMAP
-rw-r--r-- | lib/replace/wscript | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 6331b884ed..b998677cc1 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -345,6 +345,16 @@ removeea setea addmain=False, msg="Checking for C99 vsnprintf") + conf.CHECK_CODE('#include "test/shared_mmap.c"', + addmain=False, add_headers=False, execute=True, + define='HAVE_SHARED_MMAP', + msg="Checking for HAVE_SHARED_MMAP") + + conf.CHECK_CODE('#include "test/shared_mremap.c"', + addmain=False, add_headers=False, execute=True, + define='HAVE_MREMAP', + msg="Checking for HAVE_MREMAP") + # OpenBSD (and I've heard HPUX) doesn't sync between mmap and write. # FIXME: Anything other than a 0 or 1 exit code should abort configure! conf.CHECK_CODE('#include "test/incoherent_mmap.c"', |