summaryrefslogtreecommitdiff
path: root/m4/pma.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/pma.m4')
-rw-r--r--m4/pma.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/pma.m4 b/m4/pma.m4
index f6f6e969..53dc3584 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -7,8 +7,9 @@ dnl Decide whether or not to use the persistent memory allocator
AC_DEFUN([GAWK_USE_PERSISTENT_MALLOC],
[
+AC_CHECK_SIZEOF([void *])
use_persistent_malloc=no
-if test "$SKIP_PERSIST_MALLOC" = no
+if test "$SKIP_PERSIST_MALLOC" = no && test $ac_cv_sizeof_void_p -eq 8
then
AC_CHECK_FUNC([mmap])
AC_CHECK_FUNC([munmap])