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.
41 lines
1.5 KiB
41 lines
1.5 KiB
Index: libssh-0.5.2/cmake/Modules/DefineCompilerFlags.cmake |
|
--- libssh-0.5.2/cmake/Modules/DefineCompilerFlags.cmake.orig 2011-05-31 16:29:52.000000000 +0200 |
|
+++ libssh-0.5.2/cmake/Modules/DefineCompilerFlags.cmake 2011-06-02 09:15:26.000000000 +0200 |
|
@@ -20,11 +20,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) |
|
- |
|
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.5.2/include/libssh/priv.h |
|
--- libssh-0.5.2/include/libssh/priv.h.orig 2011-05-31 16:29:52.000000000 +0200 |
|
+++ libssh-0.5.2/include/libssh/priv.h 2011-06-02 09:15:26.000000000 +0200 |
|
@@ -276,5 +276,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: */ |
|
Index: libssh-0.5.2/src/messages.c |
|
--- libssh-0.5.2/src/messages.c.orig 2011-05-31 16:29:52.000000000 +0200 |
|
+++ libssh-0.5.2/src/messages.c 2011-06-02 09:17:22.000000000 +0200 |
|
@@ -41,9 +41,7 @@ |
|
#include "libssh/keys.h" |
|
#include "libssh/dh.h" |
|
#include "libssh/messages.h" |
|
-#if WITH_SERVER |
|
#include "libssh/server.h" |
|
-#endif |
|
|
|
/** |
|
* @defgroup libssh_messages The SSH message functions
|
|
|