Skip to content

Commit

Permalink
don't assume HAVE_MMAP on mingw builds
Browse files Browse the repository at this point in the history
Fixes github issue envoyproxy#1108.
  • Loading branch information
alk committed Mar 23, 2020
1 parent 4cddede commit 6b92e00
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6b92e00

Please sign in to comment.