From e1c03e30dd452f8e7e0a76c74733299bde38b41f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 25 Nov 2012 22:50:25 +0900 Subject: [PATCH] Don't use AC_FUNC_MMAP Don't use AC_FUNC_MMAP becaue it fails on some platforms (e.g., OpenWRT) which have mmap and it works in the way we use in aria2. Instead use mmap in AC_CHECK_FUNCS list. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e2ba9e40..bb22272a 100644 --- a/configure.ac +++ b/configure.ac @@ -412,13 +412,15 @@ AC_PROG_GCC_TRADITIONAL AC_FUNC_MEMCMP AC_FUNC_MKTIME -AC_FUNC_MMAP AC_FUNC_SELECT_ARGTYPES AC_FUNC_STAT AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_FUNC_FORK AC_FUNC_STRTOD +# Don't use AC_FUNC_MMAP becaue it fails on some platforms (e.g., +# OpenWRT) which have mmap and it works in the way we use in aria2. +# Instead use mmap in AC_CHECK_FUNCS list. AC_CHECK_FUNCS([__argz_count \ __argz_next \ __argz_stringify \ @@ -434,6 +436,7 @@ AC_CHECK_FUNCS([__argz_count \ mempcpy \ memset \ mkdir \ + mmap \ munmap \ nl_langinfo \ posix_memalign \