From: Darren Tucker Date: Fri, 1 May 2020 02:21:58 +0000 (+1000) Subject: Include sys/byteorder.h for htons and friends. X-Git-Tag: V_8_3_P1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f23f42123d64272a7b00754afa6b0841d676691;p=thirdparty%2Fopenssh-portable.git 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. --- diff --git a/configure.ac b/configure.ac index 9cba9542a..8adfcb347 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ 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