apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r809745 - /apr/apr/trunk/configure.in
Date Mon, 31 Aug 2009 21:13:24 GMT
Author: jim
Date: Mon Aug 31 21:13:24 2009
New Revision: 809745

URL: http://svn.apache.org/viewvc?rev=809745&view=rev
Log:
This is the right one...

Fix APR_OFF_T_FMT which is lld for OS X 10.6 (darwin 10.0.0)
since off_t ends up as a long long.

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=809745&r1=809744&r2=809745&view=diff
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Mon Aug 31 21:13:24 2009
@@ -1636,6 +1636,15 @@
     else
         AC_ERROR([could not determine the size of off_t])
     fi
+    # Per OS tuning...
+    case $host in
+    *apple-darwin10.0.0)
+        # off_t is a long long, but long == long long
+        if test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_long_long"; then
+            off_t_fmt='#define APR_OFF_T_FMT "lld"'
+        fi
+        ;;
+    esac
 else
    # Fallback on int
    off_t_value=apr_int32_t



Mime
View raw message