diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-09-25 14:28:03 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-09-25 14:28:03 -0300 |
commit | a0ca710ceac45d41082ec5e48f2ae5a2320ae1cd (patch) | |
tree | e037eeb7719b08c00de8520931081f5f489ec074 /src | |
parent | 97f2308f40f1caa7b20b79d0ef4427a3cfb764ab (diff) | |
parent | 40171f36b31aee113375fe9ccbfcdec579b1355d (diff) | |
download | luafilesystem-a0ca710ceac45d41082ec5e48f2ae5a2320ae1cd.tar.gz luafilesystem-a0ca710ceac45d41082ec5e48f2ae5a2320ae1cd.tar.bz2 luafilesystem-a0ca710ceac45d41082ec5e48f2ae5a2320ae1cd.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/lfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,6 +20,7 @@ | |||
20 | ** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $ | 20 | ** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $ |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef LFS_DO_NOT_USE_LARGE_FILE | ||
23 | #ifndef _WIN32 | 24 | #ifndef _WIN32 |
24 | #ifndef _AIX | 25 | #ifndef _AIX |
25 | #define _FILE_OFFSET_BITS 64 /* Linux, Solaris and HP-UX */ | 26 | #define _FILE_OFFSET_BITS 64 /* Linux, Solaris and HP-UX */ |
@@ -27,8 +28,11 @@ | |||
27 | #define _LARGE_FILES 1 /* AIX */ | 28 | #define _LARGE_FILES 1 /* AIX */ |
28 | #endif | 29 | #endif |
29 | #endif | 30 | #endif |
31 | #endif | ||
30 | 32 | ||
33 | #ifndef LFS_DO_NOT_USE_LARGE_FILE | ||
31 | #define _LARGEFILE64_SOURCE | 34 | #define _LARGEFILE64_SOURCE |
35 | #endif | ||
32 | 36 | ||
33 | #include <errno.h> | 37 | #include <errno.h> |
34 | #include <stdio.h> | 38 | #include <stdio.h> |