Index: libssh-0.4.0/cmake/Modules/DefineCompilerFlags.cmake
--- libssh-0.4.0/cmake/Modules/DefineCompilerFlags.cmake.orig	2009-10-29 20:22:21 +0100
+++ libssh-0.4.0/cmake/Modules/DefineCompilerFlags.cmake	2009-11-28 22:55:02 +0100
@@ -13,11 +13,6 @@
       add_definitions(-fPIC)
     endif (WITH_FPIC)
 
-    check_c_compiler_flag("-fstack-protector" WITH_STACK_PROTECTOR)
-    if (WITH_STACK_PROTECTOR)
-      add_definitions(-fstack-protector)
-    endif (WITH_STACK_PROTECTOR)
-
     check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
     if (WITH_FORTIFY_SOURCE)
       add_definitions(-D_FORTIFY_SOURCE=2)
Index: libssh-0.4.0/include/libssh/priv.h
--- libssh-0.4.0/include/libssh/priv.h.orig	2009-10-29 20:22:21 +0100
+++ libssh-0.4.0/include/libssh/priv.h	2009-11-28 22:55:02 +0100
@@ -245,5 +245,9 @@
 }
 #endif
 
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
 #endif /* _LIBSSH_PRIV_H */
 /* vim: set ts=2 sw=2 et cindent: */
