summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a63e44)
raw | patch | inline | side by side (parent: 0a63e44)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 25 Dec 2015 08:39:44 +0000 (09:39 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 12 Jan 2016 05:58:36 +0000 (06:58 +0100) |
OpenLDAP is deprecated in OSX El Capitan.
Apple would like us to use the OpenDirectory Framework instead.
Treat these deprecation warnings as warnings, not errors.
Apple would like us to use the OpenDirectory Framework instead.
Treat these deprecation warnings as warnings, not errors.
src/openldap.c | patch | blob | history |
diff --git a/src/openldap.c b/src/openldap.c
index 8667058ed049b164d7e496f37917253e55adcf14..bd79b26b7312bf076c95a247f9d3331688e5f550 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
#include "plugin.h"
#include "configfile.h"
+#if defined(__APPLE__)
+#pragma clang diagnostic push
+#pragma clang diagnostic warning "-Wdeprecated-declarations"
+#endif
+
#include <lber.h>
#include <ldap.h>
plugin_register_complex_config ("openldap", cldap_config);
plugin_register_init ("openldap", cldap_init);
} /* }}} void module_register */
+
+#if defined(__APPLE__)
+#pragma clang diagnostic pop
+#endif