blob: 4874784a8f9ce63dfe61cf843a0555e1072e1e90 [file] [log] [blame]
diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac
--- Python-3.8.0-orig/configure.ac 2019-10-22 10:00:45.568716700 +0300
+++ Python-3.8.0/configure.ac 2019-10-22 10:00:47.456320000 +0300
@@ -2407,8 +2407,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 at least as big as an off_t. You may need