summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript7
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('''