Commit f56720fc authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

configure: use AC_CHECK_FUNC to check for mmap

parent 26ff0ced
......@@ -406,16 +406,7 @@ case $ac_cv_audioresample_format in
dnl Check for mmap (needed by allocators library)
AC_MSG_CHECKING(if mmap is supported)
[#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>],
[char * p = (char *)mmap(NULL, 10, PROT_READ, MAP_SHARED, -1, 2);
AC_DEFINE(HAVE_MMAP, 1, [Defined if mmap is supported])],
AC_CHECK_FUNC([mmap], [AC_DEFINE(HAVE_MMAP, 1, [Defined if mmap is supported])])
dnl *** plug-ins to include ***
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment