summaryrefslogtreecommitdiffstats
path: root/src/misc.c
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 12:30:17 +0100
commit1199ad8f477cf27fbdc8cf06fc82934f10f72489 (patch)
treecbac4ff4738bc2df9f26a7f9590916553159fc95 /src/misc.c
parentc12559f8f684c1cb6780d8828a8121db3a332f73 (diff)
downloadlibssh-1199ad8f477cf27fbdc8cf06fc82934f10f72489.tar.gz
libssh-1199ad8f477cf27fbdc8cf06fc82934f10f72489.tar.xz
libssh-1199ad8f477cf27fbdc8cf06fc82934f10f72489.zip
misc: Fixed ssh_is_ipaddr on FreeBSD.
(cherry picked from commit d1ddec00d99e96009eebead8e1263efcfe80f9ee)
Diffstat (limited to 'src/misc.c')
-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