diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-22 18:29:50 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-22 18:29:50 -0500 |
commit | 4614f8e6816d559f8fbe9ae0f42d751d3fb95c77 (patch) | |
tree | f463cbcd67ae3350a9142eb81b0da3d7f87eb140 /configure.ac | |
parent | c35d481f56284ebeafc2860eed27c9833d631983 (diff) | |
parent | 8f465808a06c739d8f81d04f6ed07fad40cacc76 (diff) | |
download | tor-4614f8e6816d559f8fbe9ae0f42d751d3fb95c77.tar.gz tor-4614f8e6816d559f8fbe9ae0f42d751d3fb95c77.zip |
Merge remote-tracking branch 'teor/fix-mingw-pagesize'
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 27d7577a5a..8ee34070a3 100644 --- a/configure.ac +++ b/configure.ac @@ -1410,6 +1410,14 @@ AC_CHECK_DECLS([mlockall], , , [ #include <sys/mman.h> #endif]) +# Some MinGW environments don't have getpagesize in unistd.h. We don't use +# AC_CHECK_FUNCS(getpagesize), because other environments rename getpagesize +# using macros +AC_CHECK_DECLS([getpagesize], , , [ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif]) + # Allow user to specify an alternate syslog facility AC_ARG_WITH(syslog-facility, AS_HELP_STRING(--with-syslog-facility=LOG, [syslog facility to use (default=LOG_DAEMON)]), |