aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-11-04 10:47:22 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2013-11-04 10:47:22 +0100
commitcb165df64eef762e1146bcd5bd21944c2c09ca4b (patch)
treeaeee9798a460e9b6eb114badc639c4c50a4c120b /include/libssh
parente4c4f57f058ebdb0a4eaa1939f2d7cb36a1c738f (diff)
downloadlibssh-cb165df64eef762e1146bcd5bd21944c2c09ca4b.tar.gz
libssh-cb165df64eef762e1146bcd5bd21944c2c09ca4b.tar.xz
libssh-cb165df64eef762e1146bcd5bd21944c2c09ca4b.zip
remove warnings on OSX (workaround)
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/priv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 66fd54fc..d8176d90 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -155,6 +155,16 @@ int gettimeofday(struct timeval *__p, void *__t);
#include <sys/time.h>
#endif
+/*
+ * get rid of deprecacy warnings on OSX when using OpenSSL
+ */
+#if defined(__APPLE__)
+ #ifdef MAC_OS_X_VERSION_MIN_REQUIRED
+ #undef MAC_OS_X_VERSION_MIN_REQUIRED
+ #endif
+ #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
+#endif
+
/* forward declarations */
struct ssh_common_struct;
struct ssh_kex_struct;