summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/include/system/kerberos.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/include/system/kerberos.h b/source4/include/system/kerberos.h
index f0e93ccd3c..28ff260438 100644
--- a/source4/include/system/kerberos.h
+++ b/source4/include/system/kerberos.h
@@ -27,11 +27,7 @@
#undef HAVE_KRB5
#endif
-#ifdef HAVE_GSSAPI_KRB5_H
-#include <gssapi_krb5.h>
-#elif defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
-#include <gssapi/gssapi_krb5.h>
-#elif defined(HAVE_GSSAPI_H)
+#if defined(HAVE_GSSAPI_H)
#include <gssapi.h>
#elif defined(HAVE_GSSAPI_GSSAPI_H)
#include <gssapi/gssapi.h>
@@ -39,6 +35,12 @@
#include <gssapi/gssapi_generic.h>
#endif
+#ifdef HAVE_GSSAPI_KRB5_H
+#include <gssapi_krb5.h>
+#elif defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
+#include <gssapi/gssapi_krb5.h>
+#endif
+
#ifdef HAVE_COM_ERR_H
#include <com_err.h>
#endif