summaryrefslogtreecommitdiff
path: root/srclib/apr/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'srclib/apr/configure.in')
-rw-r--r--srclib/apr/configure.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/srclib/apr/configure.in b/srclib/apr/configure.in
index cff8aafd..f6b3d078 100644
--- a/srclib/apr/configure.in
+++ b/srclib/apr/configure.in
@@ -699,7 +699,7 @@ AC_CHECK_HEADERS([sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/fil
AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
create_area])
APR_CHECK_DEFINE(MAP_ANON, sys/mman.h)
-APR_CHECK_FILE(/dev/zero)
+AC_CHECK_FILE(/dev/zero)
# Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
if test "$ac_cv_func_mmap" = "yes" &&
@@ -1347,7 +1347,15 @@ case $host in
size_t_fmt='#define APR_SIZE_T_FMT "ld"'
;;
*apple-darwin*)
- ssize_t_fmt='#define APR_SSIZE_T_FMT "d"'
+ osver=`uname -r`
+ case $osver in
+ [0-7].*)
+ ssize_t_fmt='#define APR_SSIZE_T_FMT "d"'
+ ;;
+ *)
+ ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
+ ;;
+ esac
size_t_fmt='#define APR_SIZE_T_FMT "lu"'
;;
esac