apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r589583 - /apr/apr/trunk/configure.in
Date Mon, 29 Oct 2007 11:19:03 GMT
Author: jorton
Date: Mon Oct 29 04:19:02 2007
New Revision: 589583

URL: http://svn.apache.org/viewvc?rev=589583&view=rev
* configure.in: Move the ino_t test outside the enable_lfs=yes branch,
and only define apr_ino_t as unsigned long in the case where a 32-bit
ino_t is detected and hence may vary by _FILE_OFFSET_BITS; it's not
necessary in the other cases.


Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=589583&r1=589582&r2=589583&view=diff
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Mon Oct 29 04:19:02 2007
@@ -530,14 +530,6 @@
    if test "$apr_cv_use_lfs64" = "yes"; then
-   dnl define apr_ino_t in a manner independent of _FILE_OFFSET_BITS setting
-   dnl default fallback
-   ino_t_value=ino_t
-   APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned long long, ino_t_value="unsigned long long")
-   APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned long, ino_t_value="unsigned long")
-   APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned int, ino_t_value="unsigned int")
@@ -1462,6 +1454,24 @@
+# Regardless of whether _LARGEFILE64_SOURCE is used, on 32-bit
+# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
+# the build-time ABI may be different from the apparent ABI when using
+# APR with another package which *does* define _FILE_OFFSET_BITS.
+# (Exactly as per the case above with off_t where LFS is *not* used)
+# To be safe, hard-code apr_ino_t as 'unsigned long' iff that is
+# exactly the size of ino_t here; otherwise use ino_t as existing
+# releases did.  To be correct, apr_ino_t should have been made an
+# ino64_t as apr_off_t is off64_t, but this can't be done now without
+# breaking ABI.
+if test "$ac_cv_sizeof_long" = "4"; then
+    APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned long, 
+                               ino_t_value="unsigned long")
+AC_MSG_NOTICE([using $ino_t_value for ino_t])
 APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], pid_t, 8)

View raw message