summarylogtreecommitdiffstats
path: root/0007-MINGW-configure-largefile-support-for-windows-builds.patch
diff options
context:
space:
mode:
authoratomlong2021-08-28 11:19:04 +0800
committeratomlong2021-08-28 13:15:13 +0800
commit89a67c05174951d172252b1db96ff93cc4ec4bcd (patch)
treed8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0007-MINGW-configure-largefile-support-for-windows-builds.patch
parentcf8d8d8771493a2aa8370ed323d06dc733a84181 (diff)
downloadaur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz
Update to 3.9.6
Diffstat (limited to '0007-MINGW-configure-largefile-support-for-windows-builds.patch')
-rw-r--r--0007-MINGW-configure-largefile-support-for-windows-builds.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/0007-MINGW-configure-largefile-support-for-windows-builds.patch b/0007-MINGW-configure-largefile-support-for-windows-builds.patch
new file mode 100644
index 000000000000..c74382900645
--- /dev/null
+++ b/0007-MINGW-configure-largefile-support-for-windows-builds.patch
@@ -0,0 +1,43 @@
+From c4ec9b26b76ebaa442ed3ae3fa10442869e66038 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
+ <alexey.pawlow@gmail.com>
+Date: Thu, 17 Jun 2021 18:51:16 +0530
+Subject: [PATCH 007/N] MINGW configure largefile support for windows builds
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Co-authored-by: Алексей <alexey.pawlow@gmail.com>
+Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
+---
+ configure.ac | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 6058002..4c964ae 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2487,8 +2487,20 @@ AC_CHECK_SIZEOF(off_t, [], [
+ ])
+
+ 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
+--
+2.32.0
+