aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-13 10:32:47 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-13 10:32:47 +0100
commitd1ddec00d99e96009eebead8e1263efcfe80f9ee (patch)
tree3f95321fb2334759095a04f355950bed4e98bf13 /src
parent637fc7ea59ec3ecf78e9920257a7c1d8a768607e (diff)
downloadlibssh-d1ddec00d99e96009eebead8e1263efcfe80f9ee.tar.gz
libssh-d1ddec00d99e96009eebead8e1263efcfe80f9ee.tar.xz
libssh-d1ddec00d99e96009eebead8e1263efcfe80f9ee.zip
misc: Fixed ssh_is_ipaddr on FreeBSD.
Diffstat (limited to 'src')
-rw-r--r--src/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index c0e62fa2..d8d58c0a 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -26,6 +26,9 @@
/* This is needed for a standard getpwuid_r on opensolaris */
#define _POSIX_PTHREAD_SEMANTICS
#include <pwd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#endif