From 42ac42ed8e48376ddd040b083f85302c2034c09c Mon Sep 17 00:00:00 2001 From: Kim Holviala Date: Wed, 1 Feb 2017 10:34:42 +0200 Subject: [PATCH] Enabled large file support on 32-bit Linux and AIX --- gophernicus.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gophernicus.h b/gophernicus.h index 2805028..fea11fc 100644 --- a/gophernicus.h +++ b/gophernicus.h @@ -54,6 +54,7 @@ #ifdef __linux #undef PASSWD_MIN_UID #define PASSWD_MIN_UID 500 +#define _FILE_OFFSET_BITS 64 #endif /* Embedded Linux with uClibc */ @@ -80,8 +81,12 @@ #endif #endif -/* Add other OS-specific defines here */ +/* AIX */ +#if defined(_AIX) +#define _LARGE_FILES 1 +#endif +/* Add other OS-specific defines here */ /* * Include headers