aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/priv.h')
-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;