You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
1.0 KiB

Index: libssh-0.4.5/cmake/Modules/DefineCompilerFlags.cmake
--- libssh-0.4.5/cmake/Modules/DefineCompilerFlags.cmake.orig 2010-02-13 13:13:58 +0100
+++ libssh-0.4.5/cmake/Modules/DefineCompilerFlags.cmake 2010-02-13 18:08:29 +0100
@@ -13,11 +13,6 @@
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif (WITH_FPIC)
- check_c_compiler_flag("-fstack-protector" WITH_STACK_PROTECTOR)
- if (WITH_STACK_PROTECTOR)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
- endif (WITH_STACK_PROTECTOR)
-
check_c_compiler_flag("-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE)
if (WITH_FORTIFY_SOURCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FORTIFY_SOURCE=2")
Index: libssh-0.4.5/include/libssh/priv.h
--- libssh-0.4.5/include/libssh/priv.h.orig 2010-02-13 13:13:58 +0100
+++ libssh-0.4.5/include/libssh/priv.h 2010-02-13 18:07:21 +0100
@@ -250,5 +250,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: */