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.
This commit is contained in:
Darren Tucker 2020-05-01 12:21:58 +10:00
parent d27cba58c9
commit 7f23f42123
2 changed files with 4 additions and 0 deletions

View File

@ -413,6 +413,7 @@ AC_CHECK_HEADERS([ \
string.h \
strings.h \
sys/bitypes.h \
sys/byteorder.h \
sys/bsdtty.h \
sys/cdefs.h \
sys/dir.h \

View File

@ -64,6 +64,9 @@
#ifdef HAVE_ERR_H
# include <err.h>
#endif
#ifndef HAVE_SYS_BYTEORDER_H
# include <sys/byteorder.h>
#endif
/* Telnet options from arpa/telnet.h */
#define IAC 255