From c2340cd6d14d8df5345f9849c909a618e1c0710c Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Tue, 23 Nov 2004 00:22:36 +0000 Subject: * 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 --- zlib/ChangeLog.gcj | 4 ++++ zlib/zconf.h | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'zlib') diff --git a/zlib/ChangeLog.gcj b/zlib/ChangeLog.gcj index 5569030bb7d..39e5a0d118c 100644 --- a/zlib/ChangeLog.gcj +++ b/zlib/ChangeLog.gcj @@ -1,3 +1,7 @@ +2004-11-22 Eric Botcazou + + * zconf.h: Define NO_vsnprintf on Solaris 2.5.1. + 2004-10-11 Tom Tromey PR libgcj/14856: 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 +#if _XOPEN_VERSION < 3 +#define NO_vsnprintf +#endif +#endif + #endif /* ZCONF_H */ -- cgit v1.2.1