summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2020-03-23 01:15:40 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2020-03-23 01:15:40 -0700
commit6b92e00cecb82e7fae6e019583865faced29c6f7 (patch)
tree5a27cb09e4d282bc188753032a184d52f66f72b6
parent4cddede3990a96969aac9ff13ce3c8195ec91ce7 (diff)
downloadgperftools-6b92e00cecb82e7fae6e019583865faced29c6f7.tar.gz
don't assume HAVE_MMAP on mingw builds
Fixes github issue #1108.
-rw-r--r--configure.ac11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index db8e0a4..2820930 100644
--- a/configure.ac
+++ b/configure.ac
@@ -242,10 +242,13 @@ else
fi
# 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.])
+# without functional mmap. And our windows (except mingw) builds
+# aren't using autoconf. So we keep HAVE_MMAP define, but only to
+# distingush windows and rest.
+case "$host" in
+ *-mingw*) ;;
+ *) AC_DEFINE(HAVE_MMAP, 1, [Define to 1 if you have a working `mmap' system call.])
+esac
# 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.