From c1d546d7b22cc503f37e9a6efa1d249be60243a3 Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Sun, 7 Apr 2019 15:27:17 -0700 Subject: [PATCH] never test and always default HAVE_MMAP to on This should alleviate vboxfs problems from issue #1008. --- configure.ac | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/configure.ac b/configure.ac index 00b4e7b..cabfcae 100644 --- a/configure.ac +++ b/configure.ac @@ -234,31 +234,11 @@ else AC_SUBST(ac_cv_have_struct_mallinfo, 0) fi -# We need to check for mmap. cygwin supports mmap, but the autoconf -# test doesn't work on cygwin: -# http://www.cygwin.com/ml/cygwin/2002-04/msg00412.html -# This workaround comes from -# http://cygwin.com/ml/cygwin/2004-11/msg00138.html -case "$host" in - *-*-mingw*) - dnl mingw doesn't have mmap, not worth - dnl checking. Especially given that mingw can be a - dnl cross-compiler - ;; - *-*-cygwin*) - ac_cv_func_mmap_fixed_mapped=yes - AC_DEFINE(HAVE_MMAP, 1, - [Define to 1 if you have a working `mmap' system call.]) - ;; - *) if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=yes - AC_DEFINE(HAVE_MMAP, 1, - [Define to 1 if you have a working `mmap' system call.]) - else - AC_FUNC_MMAP - fi - ;; -esac +# We hardcode HAVE_MMAP to 1. There are no interesting systems anymore +# without functional mmap. And our windows builds aren't using +# autoconf. So we keep HAVE_MMAP define, but only to distingush +# windows and rest. +AC_DEFINE(HAVE_MMAP, 1, [Define to 1 if you have a working `mmap' system call.]) # If AtomicWord != Atomic32, we need to define two versions of all the # atomicops functions. If they're the same, we want to define only one.