bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] AC_SYS_LARGEFILE: define _DARWIN_USE_64_BIT_INODE conditionally


From: PHO
Subject: [PATCH] AC_SYS_LARGEFILE: define _DARWIN_USE_64_BIT_INODE conditionally
Date: Wed, 16 Jan 2013 09:01:50 +0900 (JST)

* lib/autoconf/specific.m4 (AC_SYS_LARGEFILE): This macro was
accidentally defining _DARWIN_USE_64_BIT_INODE with AH_VERBATIM so the
variable was defined even when $enable_largefile = no. The bug also
caused inconsistency between AH_HEADER and confdefs.h thus
AC_COMPUTE_INT(VAR, [sizeof(ino_t)]) produced a wrong result,
i.e. 32-bit ino_t for configuration time and 64-bit ino_t for
build/run time.
---
 lib/autoconf/specific.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4
index bbfa24a..4b20a63 100644
--- a/lib/autoconf/specific.m4
+++ b/lib/autoconf/specific.m4
@@ -171,8 +171,9 @@ if test "$enable_largefile" != no; then
   AH_VERBATIM([_DARWIN_USE_64_BIT_INODE],
 [/* Enable large inode numbers on Mac OS X 10.5.  */
 #ifndef _DARWIN_USE_64_BIT_INODE
-# define _DARWIN_USE_64_BIT_INODE 1
+# undef _DARWIN_USE_64_BIT_INODE
 #endif])
+  AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1])
 fi
 ])# AC_SYS_LARGEFILE

--
1.8.0.1

Attachment: pgpD7zyLawfzv.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]