From 7fab608205e7a29b2a9bcd344e409edbb4cea6e3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 17 Jan 1999 03:22:52 +0000 Subject: Add configure test to see whether vsnprintf() is present, separately from snprintf() --- HPUX, for one, has snprintf but not vsnprintf. Fix a minor typo in snprintf.c, too. --- src/include/port/hpux.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include/port/hpux.h') diff --git a/src/include/port/hpux.h b/src/include/port/hpux.h index 4ef01af0958..0c42e6c4b76 100644 --- a/src/include/port/hpux.h +++ b/src/include/port/hpux.h @@ -6,6 +6,14 @@ typedef struct int sema[4]; } slock_t; +/* HPUX 9 has snprintf in the library, so configure will set HAVE_SNPRINTF; + * but it doesn't provide a prototype for it. To suppress warning messages + * from gcc, do this to make c.h provide the prototype: + */ +#ifndef HAVE_VSNPRINTF +#undef HAVE_SNPRINTF +#endif + #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif -- cgit v1.2.3