[openssh-commits] [openssh] 01/01: Include sys/byteorder.h for htons and friends.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri May 1 12:52:17 AEST 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 7f23f42123d64272a7b00754afa6b0841d676691
Author: Darren Tucker <dtucker at dtucker.net>
Date: Fri May 1 12:21:58 2020 +1000
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.
---
configure.ac | 1 +
regress/netcat.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 9cba9542..8adfcb34 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 2d86818e..08e642bc 100644
--- a/regress/netcat.c
+++ b/regress/netcat.c
@@ -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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list