summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Landden <slandden@gmail.com>2018-02-25 10:00:16 -0800
committerGitHub <noreply@github.com>2018-02-25 10:00:16 -0800
commitf6a6d7ac596eb9f4f8c69363f30f4988f38618b4 (patch)
tree89b284eefd6f963f0857574c0e98854f602575ed
parent55178e85179f783afacb40e5bb44451e6055ca6c (diff)
parent64a6bcb26621c56fb5e8cbfc86529f9b74131a83 (diff)
downloaddistcc-git-f6a6d7ac596eb9f4f8c69363f30f4988f38618b4.tar.gz
Merge pull request #183 from apeabody/fix-MAP_FAILED
FIX: NULL is undeclared without stddef.h so the MAP_FAILED test fails
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 17c621c..8b4a9b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -387,6 +387,7 @@ AC_CHECK_DECLS([snprintf, vsnprintf, vasprintf, asprintf, strndup])
AC_MSG_CHECKING([if mmap() supports MAP_FAILED])
AC_TRY_COMPILE([
+#include <stddef.h>
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif],[