ports/net/nss_ldap/files/patch-ldap-nss.c
Sergey Skvortsov be307a858c Unbreak build with defined WITHOUT_KERBEROS.
PR:		ports/133344
Submitted by:	Alex Bakhtin <bakhtin xx amt.ru>
Approved by:	maintainer timeout (> 4 months)
2009-08-18 14:33:37 +00:00

19 lines
553 B
C

--- ldap-nss.c.orig Sat May 27 16:23:40 2006
+++ ldap-nss.c Sat May 27 16:23:52 2006
@@ -69,7 +69,7 @@
#endif
/* Try to handle systems with both SASL libraries installed */
-#if defined(HAVE_SASL_SASL_H) && defined(HAVE_SASL_AUXPROP_REQUEST)
+#if defined(HAVE_SASL_SASL_H)
#include <sasl/sasl.h>
#elif defined(HAVE_SASL_H)
#include <sasl.h>
@@ -84,7 +84,7 @@
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_krb5.h>
#endif
-#ifdef CONFIGURE_KRB5_CCNAME
+#if defined(CONFIGURE_KRB5_CCNAME) && defined(HAVE_KRB5_H)
#include <krb5.h>
#endif