summaryrefslogtreecommitdiff
path: root/net/nss_ldap/files/patch-ldap-nss.c
blob: d95413187f102cd69e43de5be4f093ca4387b3fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- ldap-nss.c.orig
+++ ldap-nss.c
@@ -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>
@@ -78,11 +78,11 @@
 #ifndef HAVE_SNPRINTF
 #include "snprintf.h"
 #endif
-#ifdef HAVE_GSSAPI_H
-#include <gssapi.h>
-#elif defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
+#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H
 #include <gssapi/gssapi.h>
 #include <gssapi/gssapi_krb5.h>
+#elif defined(HAVE_GSSAPI_H)
+#include <gssapi.h>
 #endif
 #ifdef CONFIGURE_KRB5_CCNAME
 #include <krb5.h>