diff --git a/src/include/switch_ssl.h b/src/include/switch_ssl.h index 24f660b459..46cdd5cbbe 100644 --- a/src/include/switch_ssl.h +++ b/src/include/switch_ssl.h @@ -32,6 +32,10 @@ #define __SWITCH_SSL_H #if defined(HAVE_OPENSSL) +#if defined (MACOSX) || defined(DARWIN) +/* Disable depricated-declarations on OS X */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif #include static switch_mutex_t **ssl_mutexes;