summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-09-18 21:46:44 +0200
committerMark Adler <madler@alumni.caltech.edu>2011-10-01 10:02:09 -0700
commit7142fcfeed453401ee47b0e36b5018a58575c065 (patch)
treeb310ac82219eedd8fdb2f8de20123d7bd39cd6df /gzlib.c
parenta4f7c653748f5b5116e841c11af7adae7a140b88 (diff)
downloadzlib-7142fcfeed453401ee47b0e36b5018a58575c065.tar.gz
Always add large file support for windows
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gzlib.c b/gzlib.c
index 57f79bb..7b31d24 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -5,11 +5,15 @@
#include "gzguts.h"
+#if defined(_WIN32)
+# define LSEEK _lseeki64
+#else
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
# define LSEEK lseek64
#else
# define LSEEK lseek
#endif
+#endif
/* Local functions */
local void gz_reset OF((gz_statep));