summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-05-01 12:21:58 +1000
committerDarren Tucker <dtucker@dtucker.net>2020-05-01 12:51:36 +1000
commit7f23f42123d64272a7b00754afa6b0841d676691 (patch)
treed14b3a4d8f9ee529c80a949ec217634e1c2e4244 /regress
parentd27cba58c972d101a5de976777e518f34ac779cb (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.c3
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