From: Anas Nashif Date: Sun, 18 Nov 2012 15:40:22 +0000 (-0800) Subject: autoconf-2.13-headers X-Git-Tag: submit/tizen/20130503.183551~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c1b160ba5b63be04cf8ea069d0ac35a6d37aff5;p=platform%2Fupstream%2Fautoconf213.git autoconf-2.13-headers --- diff --git a/acspecific.m4 b/acspecific.m4 index 8fc485a..178e79f 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1043,7 +1043,7 @@ fi ]) AC_DEFUN(AC_FUNC_MMAP, -[AC_CHECK_HEADERS(unistd.h) +[AC_CHECK_HEADERS(stdlib.h unistd.h sys/stat.h sys/types.h) AC_CHECK_FUNCS(getpagesize) AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, [AC_TRY_RUN([ @@ -1072,11 +1072,24 @@ AC_CACHE_CHECK(for working mmap, ac_cv_func_mmap_fixed_mapped, #include #include +#if HAVE_SYS_TYPES_H +# include +#endif + +#if HAVE_STDLIB_H +# include +#endif + +#if HAVE_SYS_STAT_H +# include +#endif + +#if HAVE_UNISTD_H +# include +#endif + /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H