aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-07-17 18:16:07 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-07-17 18:17:05 +0200
commitae83f775116b012727bc977a03ee8803627859aa (patch)
tree9f8b12b5946d2b19bf08ec0f92f8e961fa20f75b
parent4d8420f3282ed07fc99fc5e930c17df27ef1e9b2 (diff)
downloadlibssh-ae83f775116b012727bc977a03ee8803627859aa.tar.gz
libssh-ae83f775116b012727bc977a03ee8803627859aa.tar.xz
libssh-ae83f775116b012727bc977a03ee8803627859aa.zip
build: Fix missing struct in_addr warning.
(cherry picked from commit 782b2e37c6a4e0254e2b596b9182043c5ebabd75)
-rw-r--r--src/agent.c1
-rw-r--r--src/auth.c1
-rw-r--r--src/buffer.c1
-rw-r--r--src/channels.c1
-rw-r--r--src/client.c1
-rw-r--r--src/crypt.c1
-rw-r--r--src/dh.c1
-rw-r--r--src/known_hosts.c1
-rw-r--r--src/messages.c1
-rw-r--r--src/packet.c1
-rw-r--r--src/sftp.c1
-rw-r--r--src/sftpserver.c1
-rw-r--r--src/string.c1
13 files changed, 13 insertions, 0 deletions
diff --git a/src/agent.c b/src/agent.c
index a457d5e3..c3d13c81 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -44,6 +44,7 @@
#include <unistd.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/auth.c b/src/auth.c
index 009340f9..8e73677e 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -27,6 +27,7 @@
#include <string.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/buffer.c b/src/buffer.c
index 27d2592d..e68f16f1 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -25,6 +25,7 @@
#include <string.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/channels.c b/src/channels.c
index bb1ceeda..6b7abb61 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -30,6 +30,7 @@
#include <time.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/client.c b/src/client.c
index 829c70d5..b3c3d93e 100644
--- a/src/client.c
+++ b/src/client.c
@@ -26,6 +26,7 @@
#include <string.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/crypt.c b/src/crypt.c
index 363517e6..957d6bf6 100644
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -27,6 +27,7 @@
#include <string.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/dh.c b/src/dh.c
index 30625db3..ec291d33 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -46,6 +46,7 @@
#include <string.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/known_hosts.c b/src/known_hosts.c
index 60241b7a..5ff850e1 100644
--- a/src/known_hosts.c
+++ b/src/known_hosts.c
@@ -47,6 +47,7 @@
#endif /* HAVE_LIBCRYPTO */
#ifndef _WIN32
+# include <netinet/in.h>
# include <arpa/inet.h>
#endif
diff --git a/src/messages.c b/src/messages.c
index 5299bb6c..f5087b2a 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/packet.c b/src/packet.c
index 543c50dc..f841a641 100644
--- a/src/packet.c
+++ b/src/packet.c
@@ -29,6 +29,7 @@
#include <errno.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/sftp.c b/src/sftp.c
index e3907340..32ece23d 100644
--- a/src/sftp.c
+++ b/src/sftp.c
@@ -35,6 +35,7 @@
#include <sys/stat.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#else
#define S_IFSOCK 0140000
diff --git a/src/sftpserver.c b/src/sftpserver.c
index 36e8dcae..d698f8c9 100644
--- a/src/sftpserver.c
+++ b/src/sftpserver.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif
diff --git a/src/string.c b/src/string.c
index 6be7c2a6..ff633acd 100644
--- a/src/string.c
+++ b/src/string.c
@@ -26,6 +26,7 @@
#include <string.h>
#ifndef _WIN32
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif