From 584b996a1a27870dad30eb422d375bb08b57c64c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 22 Mar 2012 10:47:24 +1030 Subject: lib/replace: test for incoherent mmap. We test for other mmap features here, and both tdb1 and tdb2 want this check. Signed-off-by: Rusty Russell --- lib/replace/wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/replace/wscript') diff --git a/lib/replace/wscript b/lib/replace/wscript index 36c2f0f3e1..63944c3800 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -299,6 +299,13 @@ def configure(conf): addmain=False, msg="Checking for C99 vsnprintf") + # 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"', + addmain=False, add_headers=False, execute=True, + define='HAVE_INCOHERENT_MMAP', + msg="Checking for HAVE_INCOHERENT_MMAP") + conf.SAMBA_BUILD_ENV() conf.CHECK_CODE(''' -- cgit