summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wedderwille <davidwe@posteo.de>2020-05-07 15:07:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-15 18:43:26 +0200
commitdcc0b9d7aa092bd4bc9f50273e40a3777f9f8c5e (patch)
tree38b0c8a5c7f3a8ad521fdd86737e2567f683da14
parentb1bbd20dfa8adc784c03fa74d8c81c30671d011b (diff)
downloadlibssh-stable-0.9.tar.gz
libssh-stable-0.9.tar.xz
libssh-stable-0.9.zip
cmake: add _POSIX_SOURCEstable-0.9
Fixes T228 Signed-off-by: David Wedderwille <davidwe@posteo.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> (cherry picked from commit 641a80be74638be5b5114d148b5b3eb3e5c9293b)
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 73ed4814..ccf5a337 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -363,6 +363,7 @@ endif (WITH_VISIBILITY_HIDDEN)
if (MINGW)
set_target_properties(ssh PROPERTIES LINK_FLAGS "-Wl,--enable-stdcall-fixup")
+ set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-D_POSIX_SOURCE")
endif ()