|
@@ -629,9 +629,14 @@ if test x$tcmalloc = xyes ; then
|
|
|
fi
|
|
|
|
|
|
# By default, we're going to assume we don't have mlockall()
|
|
|
-# bionic and other platforms have various broken mlockall subsystems
|
|
|
-# some of systems don't have a working mlockall, some aren't linkable
|
|
|
+# bionic and other platforms have various broken mlockall subsystems.
|
|
|
+# Some systems don't have a working mlockall, some aren't linkable,
|
|
|
+# and some have it but don't declare it.
|
|
|
AC_CHECK_FUNCS(mlockall)
|
|
|
+AC_CHECK_DECLS([mlockall], , , [
|
|
|
+#ifdef HAVE_SYS_MMAN_H
|
|
|
+#include <sys/mman.h>
|
|
|
+#endif])
|
|
|
|
|
|
# Allow user to specify an alternate syslog facility
|
|
|
AC_ARG_WITH(syslog-facility,
|