Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keplerproject/luafilesystem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-09-25 21:28:03 +0400
committerHisham Muhammad <hisham@gobolinux.org>2014-09-25 21:28:03 +0400
commita0ca710ceac45d41082ec5e48f2ae5a2320ae1cd (patch)
treee037eeb7719b08c00de8520931081f5f489ec074
parent97f2308f40f1caa7b20b79d0ef4427a3cfb764ab (diff)
parent40171f36b31aee113375fe9ccbfcdec579b1355d (diff)
Merge pull request #47 from Mikhael-Danilov/patch-2
Add LFS_DO_NOT_USE_LARGE_FILE flag. This seems harmless for those who won't use it, so I'm merging this in.
-rw-r--r--src/lfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lfs.c b/src/lfs.c
index ec3544b..5461f82 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -20,6 +20,7 @@
** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $
*/
+#ifndef LFS_DO_NOT_USE_LARGE_FILE
#ifndef _WIN32
#ifndef _AIX
#define _FILE_OFFSET_BITS 64 /* Linux, Solaris and HP-UX */
@@ -27,8 +28,11 @@
#define _LARGE_FILES 1 /* AIX */
#endif
#endif
+#endif
+#ifndef LFS_DO_NOT_USE_LARGE_FILE
#define _LARGEFILE64_SOURCE
+#endif
#include <errno.h>
#include <stdio.h>