Blame SOURCES/autoconf-2.13-headers.patch

3e6817
--- autoconf-2.13/acspecific.m4.orig	Fri Jun 29 16:26:39 2001
3e6817
+++ autoconf-2.13/acspecific.m4	Fri Jun 29 16:26:39 2001
3e6817
@@ -1010,7 +1043,7 @@
3e6817
 ])
3e6817
 
3e6817
 AC_DEFUN(AC_FUNC_MMAP,
3e6817
-[AC_CHECK_HEADERS(unistd.h)
3e6817
+[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h sys/types.h)
3e6817
 AC_CHECK_FUNCS(getpagesize)
3e6817
 AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped,
3e6817
 [AC_TRY_RUN([
3e6817
@@ -1039,11 +1072,24 @@
3e6817
 #include <fcntl.h>
3e6817
 #include <sys/mman.h>
3e6817
 
3e6817
+#if HAVE_SYS_TYPES_H
3e6817
+# include <sys/types.h>
3e6817
+#endif
3e6817
+
3e6817
+#if HAVE_STDLIB_H
3e6817
+# include <stdlib.h>
3e6817
+#endif
3e6817
+
3e6817
+#if HAVE_SYS_STAT_H
3e6817
+# include <sys/stat.h>
3e6817
+#endif
3e6817
+
3e6817
+#if HAVE_UNISTD_H
3e6817
+# include <unistd.h>
3e6817
+#endif
3e6817
+
3e6817
 /* This mess was copied from the GNU getpagesize.h.  */
3e6817
 #ifndef HAVE_GETPAGESIZE
3e6817
-# ifdef HAVE_UNISTD_H
3e6817
-#  include <unistd.h>
3e6817
-# endif
3e6817
 
3e6817
 /* Assume that all systems that can run configure have sys/param.h.  */
3e6817
 # ifndef HAVE_SYS_PARAM_H