summaryrefslogtreecommitdiff
path: root/zlib/zconf.h
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-23 00:22:36 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-23 00:22:36 +0000
commitc2340cd6d14d8df5345f9849c909a618e1c0710c (patch)
treeec9ba047db6e4806065d9d79003fb18cbd563109 /zlib/zconf.h
parentf40075bc61f65e33cfeda3dffd40f76eef5bd262 (diff)
downloadgcc-c2340cd6d14d8df5345f9849c909a618e1c0710c.tar.gz
* zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91056 138bc75d-0d04-0410-961f-82ee72b054a4
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 */