Skip to content

Commit

Permalink
Added config.h patch for large file (> 2GB) support
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobstanley committed Aug 31, 2011
1 parent ad7a87e commit 1762ed1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config.h.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- a/config.h
+++ b/config.h
@@ -365,7 +365,13 @@
#define SIZEOF_LONG 4

/* The size of `off_t', as computed by sizeof. */
-#define SIZEOF_OFF_T 4
+#include <io.h>
+#include <process.h>
+#define SIZEOF_OFF_T 8
+#define lseek _lseeki64
+#define off_t __int64
+#define _off_t __int64
+#define _OFF_T_DEFINED

/* The size of `short', as computed by sizeof. */
#define SIZEOF_SHORT 2

0 comments on commit 1762ed1

Please sign in to comment.