diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-04 10:47:22 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-04 10:51:09 +0100 |
commit | 2e6dbe8d3dcffb92a9db1bcaf2b73e113ac4cd4d (patch) | |
tree | 83cfc6fe41ba62c096fe023c2582230678ed72dc /include | |
parent | 8bf6907c1dd508cad19f9e00ff1e869ede7defa4 (diff) | |
download | libssh-2e6dbe8d3dcffb92a9db1bcaf2b73e113ac4cd4d.tar.gz libssh-2e6dbe8d3dcffb92a9db1bcaf2b73e113ac4cd4d.tar.xz libssh-2e6dbe8d3dcffb92a9db1bcaf2b73e113ac4cd4d.zip |
remove warnings on OSX (workaround)
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 21f07463..020e314c 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; |