tests: HAVE_NETINET_IN_H was not defined correctly (#127)
Fixes #125
diff --git a/tests/libssh2_config_cmake.h.in b/tests/libssh2_config_cmake.h.in
index 9bab1d5..51461f2 100644
--- a/tests/libssh2_config_cmake.h.in
+++ b/tests/libssh2_config_cmake.h.in
@@ -39,6 +39,7 @@
#cmakedefine HAVE_INTTYPES_H
#cmakedefine HAVE_SYS_SOCKET_H
#cmakedefine HAVE_ARPA_INET_H
+#cmakedefine HAVE_NETINET_IN_H
#cmakedefine HAVE_WINDOWS_H
#cmakedefine HAVE_WINSOCK2_H
#cmakedefine HAVE_SNPRINTF
diff --git a/tests/openssh_fixture.c b/tests/openssh_fixture.c
index 1d791e8..185ef87 100644
--- a/tests/openssh_fixture.c
+++ b/tests/openssh_fixture.c
@@ -47,6 +47,9 @@
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif