Browse Source

Merge pull request #1 from jjlin/master

Enable Large File Support (LFS) on 32-bit systems by default
bel2125 11 years ago
parent
commit
c45b2fa088
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/civetweb.c

+ 2 - 1
src/civetweb.c

@@ -27,7 +27,8 @@
 #ifdef __linux__
 #ifdef __linux__
 #define _XOPEN_SOURCE 600     /* For flockfile() on Linux */
 #define _XOPEN_SOURCE 600     /* For flockfile() on Linux */
 #endif
 #endif
-#define _LARGEFILE_SOURCE     /* Enable 64-bit file offsets */
+#define _LARGEFILE_SOURCE     /* For fseeko(), ftello() */
+#define _FILE_OFFSET_BITS 64  /* Use 64-bit file offsets by default */
 #define __STDC_FORMAT_MACROS  /* <inttypes.h> wants this for C++ */
 #define __STDC_FORMAT_MACROS  /* <inttypes.h> wants this for C++ */
 #define __STDC_LIMIT_MACROS   /* C++ wants that for INT64_MAX */
 #define __STDC_LIMIT_MACROS   /* C++ wants that for INT64_MAX */
 #endif
 #endif