summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-09-02 15:32:40 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-09-02 15:32:40 +1000
commit46aa3e0ce1d2f341bb3e4d46035faae3bb5ee69c (patch)
tree92daa5a80c3709fc6448da32abf5d6065380bb87 /openbsd-compat
parent25fa0ee693fc99377e395bf47d74960ffda20883 (diff)
- (dtucker) [ssh-keyscan.c ssh-rand-helper.c ssh.c sshconnect.c
openbsd-compat/bindresvport.c openbsd-compat/getrrsetbyname.c openbsd-compat/port-tun.c openbsd-compat/rresvport.c] Include <arpa/inet.h> for hton* and ntoh* macros. Required on (at least) HP-UX since we define _XOPEN_SOURCE_EXTENDED. Found by santhi.amirta at gmail com.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bindresvport.c1
-rw-r--r--openbsd-compat/getrrsetbyname.c3
-rw-r--r--openbsd-compat/port-tun.c2
-rw-r--r--openbsd-compat/rresvport.c1
4 files changed, 7 insertions, 0 deletions
diff --git a/openbsd-compat/bindresvport.c b/openbsd-compat/bindresvport.c
index e8fb83f23..65afed1e3 100644
--- a/openbsd-compat/bindresvport.c
+++ b/openbsd-compat/bindresvport.c
@@ -37,6 +37,7 @@
37#include <sys/socket.h> 37#include <sys/socket.h>
38 38
39#include <netinet/in.h> 39#include <netinet/in.h>
40#include <arpa/inet.h>
40 41
41#include <errno.h> 42#include <errno.h>
42#include <string.h> 43#include <string.h>
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index 40155d5ab..6c86e02c2 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -52,6 +52,9 @@
52#include <stdlib.h> 52#include <stdlib.h>
53#include <string.h> 53#include <string.h>
54 54
55#include <netinet/in.h>
56#include <arpa/inet.h>
57
55#include "getrrsetbyname.h" 58#include "getrrsetbyname.h"
56 59
57#if defined(HAVE_DECL_H_ERRNO) && !HAVE_DECL_H_ERRNO 60#if defined(HAVE_DECL_H_ERRNO) && !HAVE_DECL_H_ERRNO
diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c
index cadc331e1..276474db8 100644
--- a/openbsd-compat/port-tun.c
+++ b/openbsd-compat/port-tun.c
@@ -18,7 +18,9 @@
18 18
19#include <sys/types.h> 19#include <sys/types.h>
20#include <sys/ioctl.h> 20#include <sys/ioctl.h>
21
21#include <netinet/in.h> 22#include <netinet/in.h>
23#include <arpa/inet.h>
22#include <netinet/ip.h> 24#include <netinet/ip.h>
23 25
24#include <errno.h> 26#include <errno.h>
diff --git a/openbsd-compat/rresvport.c b/openbsd-compat/rresvport.c
index 17e66ca59..5b0275ce0 100644
--- a/openbsd-compat/rresvport.c
+++ b/openbsd-compat/rresvport.c
@@ -39,6 +39,7 @@
39#include <sys/socket.h> 39#include <sys/socket.h>
40 40
41#include <netinet/in.h> 41#include <netinet/in.h>
42#include <arpa/inet.h>
42 43
43#include <errno.h> 44#include <errno.h>
44#include <stdlib.h> 45#include <stdlib.h>