25 lines
877 B
Diff
25 lines
877 B
Diff
diff -Naur Python-3.7.0-orig/configure.ac Python-3.7.0/configure.ac
|
|
--- Python-3.7.0-orig/configure.ac 2018-07-12 10:20:50.203098900 +0300
|
|
+++ Python-3.7.0/configure.ac 2018-07-12 10:20:50.530699400 +0300
|
|
@@ -2389,8 +2389,20 @@
|
|
])
|
|
|
|
AC_MSG_CHECKING(whether to enable large file support)
|
|
+have_largefile_support=no
|
|
if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
|
|
"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
|
|
+ have_largefile_support=yes
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw*)
|
|
+ dnl Activate on windows platforms (32&64-bit) where off_t(4) < fpos_t(8)
|
|
+ have_largefile_support=yes
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
+if test $have_largefile_support = yes ; then
|
|
AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
|
|
[Defined to enable large file support when an off_t is bigger than a long
|
|
and long long is available and at least as big as an off_t. You may need
|