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.2 KiB

Index: libssh-0.7.5/cmake/Modules/DefineCompilerFlags.cmake
--- libssh-0.7.5/cmake/Modules/DefineCompilerFlags.cmake.orig 2016-11-19 17:30:42.706075000 +0100
+++ libssh-0.7.5/cmake/Modules/DefineCompilerFlags.cmake 2016-11-19 17:31:04.986139600 +0100
@@ -21,11 +21,6 @@
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif (WITH_FPIC)
- check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR)
- if (WITH_STACK_PROTECTOR)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector")
- endif (WITH_STACK_PROTECTOR)
-
if (CMAKE_BUILD_TYPE)
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
if (CMAKE_BUILD_TYPE_LOWER MATCHES (release|relwithdebinfo|minsizerel))
Index: libssh-0.7.5/include/libssh/priv.h
--- libssh-0.7.5/include/libssh/priv.h.orig 2016-02-15 13:42:53.000000000 +0100
+++ libssh-0.7.5/include/libssh/priv.h 2016-11-19 17:30:42.706075444 +0100
@@ -361,5 +361,9 @@
#define CLOSE_SOCKET(s) do { if ((s) != SSH_INVALID_SOCKET) { _XCLOSESOCKET(s); (s) = SSH_INVALID_SOCKET;} } while(0)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
#endif /* _LIBSSH_PRIV_H */
/* vim: set ts=4 sw=4 et cindent: */