2012-02-19  Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* gzguts.h [__DJGPP__, HAVE_VSNPRINTF]:  DJGPP provides [v]snprintf
	so define HAVE_VSNPRINTF but do not define NO_vsnprintf.






diff -aprNU5 zlib-1.2.6.orig/gzguts.h zlib-1.2.6/gzguts.h
--- zlib-1.2.6.orig/gzguts.h	2012-01-29 18:13:14 +0000
+++ zlib-1.2.6/gzguts.h	2012-02-19 19:51:28 +0000
@@ -39,10 +39,16 @@
 #  ifndef HAVE_VSNPRINTF
 #    define HAVE_VSNPRINTF
 #  endif
 #endif
 
+#if defined(__DJGPP__)
+#  ifndef HAVE_VSNPRINTF
+#    define HAVE_VSNPRINTF
+#  endif
+#endif
+
 #if defined(__CYGWIN__)
 #  ifndef HAVE_VSNPRINTF
 #    define HAVE_VSNPRINTF
 #  endif
 #endif
@@ -52,11 +58,11 @@
 #    define HAVE_VSNPRINTF
 #  endif
 #endif
 
 #ifndef HAVE_VSNPRINTF
-#  ifdef MSDOS
+#  if defined(MSDOS) && !defined(__DJGPP__)
 /* vsnprintf may exist on some MS-DOS compilers (DJGPP?),
  but for now we just assume it doesn't. */
 #    define NO_vsnprintf
 #  endif
 #  ifdef __TURBOC__
