aboutsummaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-11-23 01:22:36 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-11-23 00:22:36 +0000
commit3174451e1627ac2b8dc30f20404eb871d3cece5c (patch)
treeec9ba047db6e4806065d9d79003fb18cbd563109 /zlib
parent9f699c84e250c1aebb6eed87a0ec2ee628814696 (diff)
downloadgcc-3174451e1627ac2b8dc30f20404eb871d3cece5c.zip
gcc-3174451e1627ac2b8dc30f20404eb871d3cece5c.tar.gz
gcc-3174451e1627ac2b8dc30f20404eb871d3cece5c.tar.bz2
* zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
From-SVN: r91056
Diffstat (limited to 'zlib')
-rw-r--r--zlib/ChangeLog.gcj4
-rw-r--r--zlib/zconf.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/zlib/ChangeLog.gcj b/zlib/ChangeLog.gcj
index 5569030..39e5a0d 100644
--- a/zlib/ChangeLog.gcj
+++ b/zlib/ChangeLog.gcj
@@ -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:
diff --git a/zlib/zconf.h b/zlib/zconf.h
index 831285e..96dbc20 100644
--- a/zlib/zconf.h
+++ b/zlib/zconf.h
@@ -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 */