35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From c870543ffff89e0622e7678b375d92664337f624 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 006/N] configure: enable largefile support by default for
|
|
Mingw
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Largefile is supported on Windows.
|
|
|
|
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
|
|
---
|
|
configure.ac | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 8b11800..6914b14 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -3184,6 +3184,10 @@ dnl LFS does not work with Emscripten 3.1
|
|
AS_CASE([$ac_sys_system],
|
|
[Emscripten], [have_largefile_support="no"]
|
|
)
|
|
+dnl Activate on windows platforms (32&64-bit) where off_t(4) < fpos_t(8)
|
|
+AS_CASE([$ac_sys_system],
|
|
+ [MINGW], [have_largefile_support="yes"]
|
|
+)
|
|
AS_VAR_IF([have_largefile_support], [yes], [
|
|
AC_DEFINE([HAVE_LARGEFILE_SUPPORT], [1],
|
|
[Defined to enable large file support when an off_t is bigger than a long
|