summaryrefslogtreecommitdiff
path: root/includes/cf
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-07-13 18:00:22 +0000
committerTed Lemon <source@isc.org>1999-07-13 18:00:22 +0000
commit3175ee907c1cd4d3fa9848fb59ca8195c82dc332 (patch)
treeeae4bdbfaf473592d1f0915370ccff666e5f0e38 /includes/cf
parent6057415f792ff766dc439ea6bf0140f395fc69b7 (diff)
downloadisc-dhcp-3175ee907c1cd4d3fa9848fb59ca8195c82dc332.tar.gz
Changes to make builds work on HP-UX with ANSI compiler.
Diffstat (limited to 'includes/cf')
-rw-r--r--includes/cf/hpux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/cf/hpux.h b/includes/cf/hpux.h
index e4820fd4..f7cdaffb 100644
--- a/includes/cf/hpux.h
+++ b/includes/cf/hpux.h
@@ -52,9 +52,17 @@ extern int h_errno;
#define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
#endif
+#if !defined (__ANSI__)
+/* Varargs stuff: use stdarg.h instead ... */
+#include <stdarg.h>
+#define VA_DOTDOTDOT ...
+#define VA_start(list, last) va_start (list, last)
+#define va_dcl
+#else
#include <varargs.h>
#define VA_DOTDOTDOT va_alist
#define VA_start(list, last) va_start (list)
+#endif
#define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list)
#define NO_SNPRINTF