]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libreplace: Add missing tests for HAVE_MREMAP and HAVE_SHARED_MMAP
authorAndrew Bartlett <abartlet@samba.org>
Sat, 2 Jun 2012 04:13:14 +0000 (14:13 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 2 Jun 2012 05:56:41 +0000 (15:56 +1000)
lib/replace/wscript

index 6331b884eda49863e2e676a19508d06f4d12ab64..b998677cc1522b255898d48f21e9ecef084dc847 100644 (file)
@@ -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"',