From 7f23f42123d64272a7b00754afa6b0841d676691 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 1 May 2020 12:21:58 +1000 Subject: Include sys/byteorder.h for htons and friends. These are usually in netinet/in.h but on HP-UX they are not defined if _XOPEN_SOURCE_EXTENDED is set. Only needed for netcat in the regression tests. --- regress/netcat.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'regress') diff --git a/regress/netcat.c b/regress/netcat.c index 2d86818e2..08e642bc0 100644 --- a/regress/netcat.c +++ b/regress/netcat.c @@ -64,6 +64,9 @@ #ifdef HAVE_ERR_H # include #endif +#ifndef HAVE_SYS_BYTEORDER_H +# include +#endif /* Telnet options from arpa/telnet.h */ #define IAC 255 -- cgit v1.2.3