diff --git a/lib/bind/port_before.h.in b/lib/bind/port_before.h.in index fb0ee8ff75..c0de216a1a 100644 --- a/lib/bind/port_before.h.in +++ b/lib/bind/port_before.h.in @@ -138,6 +138,11 @@ 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 /*! \file */