aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/hpux.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/hpux.h')
-rw-r--r--src/include/port/hpux.h8
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