diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-22 10:47:24 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-22 01:57:37 +0100 |
commit | 584b996a1a27870dad30eb422d375bb08b57c64c (patch) | |
tree | ea15ee6020b25f0ff46060043aa7a62b3f767bf6 /lib/replace/wscript | |
parent | b3a6ffd7b269f7a34334d24b54591c225da773a5 (diff) | |
download | samba-584b996a1a27870dad30eb422d375bb08b57c64c.tar.gz samba-584b996a1a27870dad30eb422d375bb08b57c64c.tar.bz2 samba-584b996a1a27870dad30eb422d375bb08b57c64c.zip |
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 7 |
1 files changed, 7 insertions, 0 deletions
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(''' |