-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added config.h patch for large file (> 2GB) support
- Loading branch information
1 parent
ad7a87e
commit 1762ed1
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |