diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-01-17 03:22:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-01-17 03:22:52 +0000 |
commit | 7fab608205e7a29b2a9bcd344e409edbb4cea6e3 (patch) | |
tree | e0bcefb8166f240cc23212f418057deee6853784 /src/include/port/hpux.h | |
parent | cd6bc85aa2f847d49660d2d09c97c72d2bbe1ef1 (diff) | |
download | postgresql-7fab608205e7a29b2a9bcd344e409edbb4cea6e3.tar.gz postgresql-7fab608205e7a29b2a9bcd344e409edbb4cea6e3.zip |
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.
Diffstat (limited to 'src/include/port/hpux.h')
-rw-r--r-- | src/include/port/hpux.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |