* zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Nov 2004 00:22:36 +0000 (00:22 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Nov 2004 00:22:36 +0000 (00:22 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91056 138bc75d-0d04-0410-961f-82ee72b054a4

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 */