Trac 53 minw update
[platform/upstream/libwebsockets.git] / win32port / zlib / gzio.c
index 26f2da1..a57352e 100644 (file)
@@ -10,6 +10,7 @@
 #include <stdio.h>\r
 \r
 #include "zutil.h"\r
+#include "gzguts.h"\r
 \r
 #ifdef NO_DEFLATE       /* for compatiblity with old definition */\r
 #  define NO_GZCOMPRESS\r
@@ -977,7 +978,7 @@ const char * ZEXPORT gzerror (file, errnum)
     *errnum = s->z_err;\r
     if (*errnum == Z_OK) return (const char*)"";\r
 \r
-    m = (char*)(*errnum == Z_ERRNO ? zstrerror(errno) : s->stream.msg);\r
+    m = (char*)(*errnum == Z_ERRNO ? zstrerror() : s->stream.msg);\r
 \r
     if (m == NULL || *m == '\0') m = (char*)ERR_MSG(s->z_err);\r
 \r