Blame SOURCES/autoconf-2.13-headers.patch

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