diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-11-23 00:22:36 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-11-23 00:22:36 +0000 |
commit | e892198d9d361874b77be8ad28aaca94f667c9fd (patch) | |
tree | ec9ba047db6e4806065d9d79003fb18cbd563109 /zlib | |
parent | 389b03496958d4ad5b95eac40ff204d729a1621c (diff) |
* zconf.h: Define NO_vsnprintf on Solaris 2.5.1.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@91056 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'zlib')
-rw-r--r-- | zlib/ChangeLog.gcj | 4 | ||||
-rw-r--r-- | zlib/zconf.h | 8 |
2 files changed, 12 insertions, 0 deletions
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 <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 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 */ |