* zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 23 Nov 2004 00:22:36 +0000 (01:22 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 23 Nov 2004 00:22:36 +0000 (00:22 +0000)
From-SVN: r91056

zlib/ChangeLog.gcj
zlib/zconf.h

index 5569030..39e5a0d 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
+
 2004-10-11  Tom Tromey  <tromey@redhat.com>
 
        PR libgcj/14856:
index 831285e..96dbc20 100644 (file)
@@ -320,4 +320,12 @@ typedef uLong FAR uLongf;
 #   pragma map(inflate_copyright,"INCOPY")
 #endif
 
+/* Solaris 2.5.1 doesn't have vsnprintf */
+#if defined(__sun) && defined(__svr4__)
+#include <sys/feature_tests.h>
+#if _XOPEN_VERSION < 3
+#define NO_vsnprintf
+#endif
+#endif
+
 #endif /* ZCONF_H */