From 40c2c3270db9c33e22d219148c660f63c3ddf3ca Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 11 Nov 2009 21:15:34 +0000 Subject: [PATCH] - 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. --- CHANGES | 5 +++++ RELEASE-NOTES | 1 + lib/krb5.c | 17 ++++++++++------- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index 20ed3f234..cbe571131 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,11 @@ Changelog +Yang Tse (11 Nov 2009) +- 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. + Daniel Stenberg (11 Nov 2009) - Constantine Sapuntzakis posted bug #2891595 (http://curl.haxx.se/bug/view.cgi?id=2891595) which identified how an entry diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 89549d72e..635ba0b69 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -17,6 +17,7 @@ This release includes the following bugfixes: o portability enhancement for OS's without orthogonal directory tree structure o progress meter/callback during FTP connection o DNS cache timeout while transfer in progress + o compilation when configured --with-gssapi having GNU GSS installed This release includes the following known bugs: 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 #endif #include -#ifdef HAVE_GSSMIT -/* MIT style */ -#include -#include -#include + +#ifdef HAVE_GSSGNU +# include +#elif defined HAVE_GSSMIT + /* MIT style */ +# include +# include +# include #else -/* Heimdal-style */ -#include + /* Heimdal-style */ +# include #endif #include "urldata.h"