summaryrefslogtreecommitdiff
path: root/zlib/zconf.h
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/zconf.h
parent9f699c84e250c1aebb6eed87a0ec2ee628814696 (diff)
downloadgcc-3174451e1627ac2b8dc30f20404eb871d3cece5c.tar.gz
* zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
From-SVN: r91056
Diffstat (limited to 'zlib/zconf.h')
-rw-r--r--zlib/zconf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/zlib/zconf.h b/zlib/zconf.h
index 831285e8efb..96dbc205c91 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 */