diff --git a/lib/bind/port_before.h.in b/lib/bind/port_before.h.in index 41c01e797c..c754efd2b0 100644 --- a/lib/bind/port_before.h.in +++ b/lib/bind/port_before.h.in @@ -138,4 +138,9 @@ struct timezone; /* silence warning */ #define ISC_FORMAT_PRINTF(fmt, args) #endif +/* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */ +#if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) +#include +#endif + #endif