diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-11 19:51:50 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-11 19:51:50 +0000 |
commit | eeac36968894c1d016683021bac1fe8288c6b313 (patch) | |
tree | 0872b50b962355fa16e288f150982d24d15491ce /build | |
parent | 3e99569483b47ba58b2e6baaac9557104246d629 (diff) | |
download | libapr-eeac36968894c1d016683021bac1fe8288c6b313.tar.gz |
grab a subset of trunk r1090664:
enable APR_HAS_SENDFILE and APR_HAS_MMAP for MinGW builds
(the rest of r1090664 was N/A, as the 1.x branches have
different handling of included files in apr.hw/.h.in)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1091182 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/apr_hints.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4 index ee03ce02e..416a46285 100644 --- a/build/apr_hints.m4 +++ b/build/apr_hints.m4 @@ -456,16 +456,22 @@ dnl # Not a problem in 10.20. Otherwise, who knows? APR_SETIFNULL(ac_cv_tcp_nodelay_inherited, [yes]) APR_SETIFNULL(ac_cv_file__dev_zero, [no]) APR_SETIFNULL(ac_cv_func_setpgrp_void, [no]) + APR_SETIFNULL(ac_cv_func_mmap, [yes]) case $host in *mingw32*) APR_SETIFNULL(apr_has_xthread_files, [1]) APR_SETIFNULL(apr_has_user, [1]) APR_SETIFNULL(apr_procattr_user_set_requires_password, [1]) + dnl The real function is TransmitFile(), not sendfile(), but + dnl this bypasses the Linux/Solaris/AIX/etc. test and enables + dnl the TransmitFile() implementation. + APR_SETIFNULL(ac_cv_func_sendfile, [yes]) ;; *mingwce) APR_SETIFNULL(apr_has_xthread_files, [0]) APR_SETIFNULL(apr_has_user, [0]) APR_SETIFNULL(apr_procattr_user_set_requires_password, [0]) + APR_SETIFNULL(ac_cv_func_sendfile, [no]) ;; esac ;; |