From 1073ed780e604e69b094aa71e0f731a156405555 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sat, 4 Jul 1998 03:06:21 +0200
Subject: [PATCH] Improved LARGEFILE support.

Rev: src/fd_control.c:1.10
---
 src/fd_control.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/fd_control.c b/src/fd_control.c
index 4c6f38ab81..3dc0ef6f1e 100644
--- a/src/fd_control.c
+++ b/src/fd_control.c
@@ -7,6 +7,15 @@
 #include "global.h"
 #include "error.h"
 #else
+#ifndef _LARGEFILE_SOURCE
+#  define _FILE_OFFSET_BITS 64
+#  define _LARGEFILE_SOURCE 1
+#  define _LARGEFILE64_SOURCE 1
+#endif /* !_LARGERFILE_SOURCE */
+/* HPUX needs these too... */
+#ifndef __STDC_EXT__
+#  define __STDC_EXT__
+#endif /* !__STDC_EXT__ */
 #undef DEBUG
 #endif
 
-- 
GitLab