diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-05-01 12:21:58 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-05-01 12:51:36 +1000 |
commit | 7f23f42123d64272a7b00754afa6b0841d676691 (patch) | |
tree | d14b3a4d8f9ee529c80a949ec217634e1c2e4244 /regress | |
parent | d27cba58c972d101a5de976777e518f34ac779cb (diff) |
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.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/netcat.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ | |||
64 | #ifdef HAVE_ERR_H | 64 | #ifdef HAVE_ERR_H |
65 | # include <err.h> | 65 | # include <err.h> |
66 | #endif | 66 | #endif |
67 | #ifndef HAVE_SYS_BYTEORDER_H | ||
68 | # include <sys/byteorder.h> | ||
69 | #endif | ||
67 | 70 | ||
68 | /* Telnet options from arpa/telnet.h */ | 71 | /* Telnet options from arpa/telnet.h */ |
69 | #define IAC 255 | 72 | #define IAC 255 |