From 48c73ade31e3d08cd00dd0ade56f5bcc1623b00a Mon Sep 17 00:00:00 2001
From: Peter Powell
Date: Tue, 27 Nov 2012 23:50:37 +0000
Subject: Silence OpenSSL deprecation warnings on OS X.
---
src/modules/extra/m_ssl_openssl.cpp | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
(limited to 'src/modules/extra')
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 90ad3996b..b741c67b5 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -21,7 +21,15 @@
* along with this program. If not, see .
*/
-
+ /* HACK: This prevents OpenSSL on OS X 10.7 and later from spewing deprecation
+ * warnings for every single function call. As far as I (SaberUK) know, Apple
+ * have no plans to remove OpenSSL so this warning just causes needless spam.
+ */
+#ifdef __APPLE__
+# define __AVAILABILITYMACROS__
+# define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
+#endif
+
#include "inspircd.h"
#include
#include
--
cgit v1.3.1-10-gc9f91