Code

If unspecified set LDAP_OPT_SUCCESS to LDAP_SUCCESS (Sergei Haramundanis - #1498923)
authorMatthias Eble <psychotrahe@users.sourceforge.net>
Sun, 6 Jan 2008 00:10:49 +0000 (00:10 +0000)
committerMatthias Eble <psychotrahe@users.sourceforge.net>
Sun, 6 Jan 2008 00:10:49 +0000 (00:10 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1888 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_ldap.c

index 6a46ff123aa9f56260334744d1cf0261c68cc3a5..5541e5c868890ef9a1f36ffcaf6f0fe47ebbfebd 100644 (file)
@@ -67,6 +67,9 @@ int ld_port = DEFAULT_PORT;
 #ifdef HAVE_LDAP_SET_OPTION
 int ld_protocol = DEFAULT_PROTOCOL;
 #endif
+#ifndef LDAP_OPT_SUCCESS
+# define LDAP_OPT_SUCCESS LDAP_SUCCESS
+#endif
 double warn_time = UNDEFINED;
 double crit_time = UNDEFINED;
 struct timeval tv;