Blame SOURCES/autoconf-2.13-headers.patch

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