Blame SOURCES/autoconf-2.13-headers.patch

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