aboutsummaryrefslogtreecommitdiff
path: root/zlib/gzlib.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-11-12 16:58:49 +0100
committermarha <marha@users.sourceforge.net>2013-11-12 16:58:49 +0100
commit6d8fefe38077f4d532c256e79cfcaf2a46c5269d (patch)
treedfc74a8d253b690dac620212cbb9d46001cdaa2b /zlib/gzlib.c
parent0e01270aeda311bf52c046f6a68e8b3e1fa86cb8 (diff)
downloadvcxsrv-6d8fefe38077f4d532c256e79cfcaf2a46c5269d.tar.gz
vcxsrv-6d8fefe38077f4d532c256e79cfcaf2a46c5269d.tar.bz2
vcxsrv-6d8fefe38077f4d532c256e79cfcaf2a46c5269d.zip
Now use visual studio 2013 express edition for compilation
Diffstat (limited to 'zlib/gzlib.c')
-rw-r--r--zlib/gzlib.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/zlib/gzlib.c b/zlib/gzlib.c
index fae202ef8..1819af951 100644
--- a/zlib/gzlib.c
+++ b/zlib/gzlib.c
@@ -99,7 +99,7 @@ local gzFile gz_open(path, fd, mode)
#ifdef O_CLOEXEC
int cloexec = 0;
#endif
-#ifdef O_EXCL
+#ifdef _O_EXCL
int exclusive = 0;
#endif
@@ -228,14 +228,14 @@ local gzFile gz_open(path, fd, mode)
(cloexec ? O_CLOEXEC : 0) |
#endif
(state->mode == GZ_READ ?
- O_RDONLY :
- (O_WRONLY | O_CREAT |
-#ifdef O_EXCL
- (exclusive ? O_EXCL : 0) |
+ _O_RDONLY :
+ (_O_WRONLY | _O_CREAT |
+#ifdef _O_EXCL
+ (exclusive ? _O_EXCL : 0) |
#endif
(state->mode == GZ_WRITE ?
- O_TRUNC :
- O_APPEND)));
+ _O_TRUNC :
+ _O_APPEND)));
/* open the file with the appropriate flags (or just use fd) */
state->fd = fd > -1 ? fd : (