You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2011/04/11 21:53:01 UTC

svn commit: r1091184 - /apr/apr/branches/1.4.x/build/apr_hints.m4

Author: trawick
Date: Mon Apr 11 19:53:01 2011
New Revision: 1091184

URL: http://svn.apache.org/viewvc?rev=1091184&view=rev
Log:
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)

Modified:
    apr/apr/branches/1.4.x/build/apr_hints.m4

Modified: apr/apr/branches/1.4.x/build/apr_hints.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/build/apr_hints.m4?rev=1091184&r1=1091183&r2=1091184&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/build/apr_hints.m4 (original)
+++ apr/apr/branches/1.4.x/build/apr_hints.m4 Mon Apr 11 19:53:01 2011
@@ -456,16 +456,22 @@ dnl	       # Not a problem in 10.20.  Ot
         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
         ;;