summaryrefslogtreecommitdiff
path: root/lib/krb5.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-11 21:15:34 +0000
committerYang Tse <yangsita@gmail.com>2009-11-11 21:15:34 +0000
commit40c2c3270db9c33e22d219148c660f63c3ddf3ca (patch)
tree4a6f1e1e9b286ba328e4bb1a6f761007902464d7 /lib/krb5.c
parentb3e8cf539d0105c2d1cbcab6b0090d3d034fd8ae (diff)
downloadcurl-40c2c3270db9c33e22d219148c660f63c3ddf3ca.tar.gz
- Marco Maggi reported that compilation failed when configured --with-gssapi
and GNU GSS installed due to a missing mutual exclusion of header files in the Kerberos 5 code path. He also verified that my patch worked for him.
Diffstat (limited to 'lib/krb5.c')
-rw-r--r--lib/krb5.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index e76391228..36afc3c46 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -46,14 +46,17 @@
#include <netdb.h>
#endif
#include <string.h>
-#ifdef HAVE_GSSMIT
-/* MIT style */
-#include <gssapi/gssapi.h>
-#include <gssapi/gssapi_generic.h>
-#include <gssapi/gssapi_krb5.h>
+
+#ifdef HAVE_GSSGNU
+# include <gss.h>
+#elif defined HAVE_GSSMIT
+ /* MIT style */
+# include <gssapi/gssapi.h>
+# include <gssapi/gssapi_generic.h>
+# include <gssapi/gssapi_krb5.h>
#else
-/* Heimdal-style */
-#include <gssapi.h>
+ /* Heimdal-style */
+# include <gssapi.h>
#endif
#include "urldata.h"