]> granicus.if.org Git - python/commitdiff
#11184: Fix large file support on AIX.
authorGeorg Brandl <georg@python.org>
Sat, 19 Feb 2011 08:58:23 +0000 (08:58 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 19 Feb 2011 08:58:23 +0000 (08:58 +0000)
Misc/NEWS
configure
configure.in

index d7f79d206c2c870923e14d76f6def75d6ae92c70..093a126f97a9539ec09ad6b72d2816a3c4b528b6 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -18,6 +18,8 @@ Build
 
 - Issue #11222: Fix non-framework shared library build on Mac OS X.
 
+- Issue #11184: Fix large-file support on AIX.
+
 - Issue #941346: Fix broken shared library build on AIX.
 
 Documentation
index 63fae0f5ffbcd9524e19e444c940d0fde3259769..96747ff784f2ebf92d7ac0c75dc147c1f8c6ca6b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 88426 .
+# From configure.in Revision: 88430 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.68 for python 3.2.
 #
@@ -6414,6 +6414,13 @@ fi
 if test "$use_lfs" = "yes"; then
 # Two defines needed to enable largefile support on various platforms
 # These may affect some typedefs
+case $ac_sys_system/$ac_sys_release in
+AIX*)
+
+$as_echo "#define _LARGE_FILES 1" >>confdefs.h
+
+    ;;
+esac
 
 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
 
index 26d4f6c3febea0b62422557d44e1074717b42d35..6f4ffa5ce090a43f8482243979311cabe79348bd 100644 (file)
@@ -1376,6 +1376,12 @@ fi
 if test "$use_lfs" = "yes"; then
 # Two defines needed to enable largefile support on various platforms
 # These may affect some typedefs
+case $ac_sys_system/$ac_sys_release in
+AIX*)
+    AC_DEFINE(_LARGE_FILES, 1, 
+    [This must be defined on AIX systems to enable large file support.])
+    ;;
+esac
 AC_DEFINE(_LARGEFILE_SOURCE, 1, 
 [This must be defined on some systems to enable large file support.])
 AC_DEFINE(_FILE_OFFSET_BITS, 64,