aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Aguirre <albaguirre@gmail.com>2018-06-22 09:19:28 -0500
committerAndreas Schneider <asn@cryptomilk.org>2018-06-25 08:20:40 +0200
commitb50fb638f7ea1c6fdaf6dc36b40b7ef3024748de (patch)
tree18de5e5c3b7574d0ff563dfb9a68e32a18c64e28
parente06ae8e096da851d436b285fd657416129c42c17 (diff)
downloadlibssh-b50fb638f7ea1c6fdaf6dc36b40b7ef3024748de.tar.gz
libssh-b50fb638f7ea1c6fdaf6dc36b40b7ef3024748de.tar.xz
libssh-b50fb638f7ea1c6fdaf6dc36b40b7ef3024748de.zip
knownhosts: Fix windows build failure
Signed-off-by: Alberto Aguirre <albaguirre@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/knownhosts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/knownhosts.c b/src/knownhosts.c
index 648cd777..28f5e4a6 100644
--- a/src/knownhosts.c
+++ b/src/knownhosts.c
@@ -28,8 +28,11 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+
+#ifndef _WIN32
#include <arpa/inet.h>
#include <netinet/in.h>
+#endif
#include "libssh/priv.h"
#include "libssh/dh.h"