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.
This commit is contained in:
Hisham Muhammad
2014-09-25 14:28:03 -03:00

View File

@@ -20,6 +20,7 @@
** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $ ** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $
*/ */
#ifndef LFS_DO_NOT_USE_LARGE_FILE
#ifndef _WIN32 #ifndef _WIN32
#ifndef _AIX #ifndef _AIX
#define _FILE_OFFSET_BITS 64 /* Linux, Solaris and HP-UX */ #define _FILE_OFFSET_BITS 64 /* Linux, Solaris and HP-UX */
@@ -27,8 +28,11 @@
#define _LARGE_FILES 1 /* AIX */ #define _LARGE_FILES 1 /* AIX */
#endif #endif
#endif #endif
#endif
#ifndef LFS_DO_NOT_USE_LARGE_FILE
#define _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE
#endif
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>