]> granicus.if.org Git - sudo/commitdiff
fix compilation on solaris
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 Dec 2007 19:25:10 +0000 (19:25 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 19 Dec 2007 19:25:10 +0000 (19:25 +0000)
ldap.c

diff --git a/ldap.c b/ldap.c
index b3d98821e267fd7ddf379caaf21d8f68c81feb9d..cfa3ab1962138593d995fe3bb2f3ff6a49a01998 100644 (file)
--- a/ldap.c
+++ b/ldap.c
@@ -50,7 +50,6 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
-#include <err.h>
 #ifdef HAVE_LBER_H
 # include <lber.h>
 #endif
@@ -88,6 +87,10 @@ __unused static const char rcsid[] = "$Sudo$";
 # define LDAP_OPT_SUCCESS LDAP_SUCCESS
 #endif
 
+#if defined(HAVE_LDAP_SASL_INTERACTIVE_BIND_S) && !defined(LDAP_SASL_QUIET)
+# define LDAP_SASL_QUIET       0
+#endif
+
 #define LDAP_FOREACH(var, ld, res)                                     \
     for ((var) = ldap_first_entry((ld), (res));                                \
        (var) != NULL;                                                  \