lib: fix gssapi.h include on IBMi
No binary (build failed)
—
(log yok)
| @@ -102,6 +102,9 @@ | |
| /* Define if you have GSS API. */ | |
| #define HAVE_GSSAPI | |
| + | /* Define if you have the <gssapi.h> header file. */ |
| + | #define HAVE_GSSAPI_H |
| + | |
| /* Define if you have the GNU gssapi libraries */ | |
| #undef HAVE_GSSGNU | |
| @@ -191,7 +191,11 @@ typedef CURLcode (Curl_recv)(struct Curl_easy *data, /* transfer */ | |
| # ifdef HAVE_GSSGNU | |
| # include <gss.h> | |
| # else | |
| - | # include <gssapi/gssapi.h> |
| + | # ifdef HAVE_GSSAPI_H |
| + | # include <gssapi.h> |
| + | # else |
| + | # include <gssapi/gssapi.h> |
| + | # endif |
| # endif | |
| #endif | |
| @@ -237,7 +237,11 @@ CURLcode Curl_auth_create_xoauth_bearer_message(const char *user, | |
| # ifdef HAVE_GSSGNU | |
| # include <gss.h> | |
| # else | |
| - | # include <gssapi/gssapi.h> |
| + | # ifdef HAVE_GSSAPI_H |
| + | # include <gssapi.h> |
| + | # else |
| + | # include <gssapi/gssapi.h> |
| + | # endif |
| # endif | |
| #endif | |
| @@ -81,7 +81,11 @@ | |
| # ifdef HAVE_GSSGNU | |
| # include <gss.h> | |
| # else | |
| - | # include <gssapi/gssapi.h> |
| + | # ifdef HAVE_GSSAPI_H |
| + | # include <gssapi.h> |
| + | # else |
| + | # include <gssapi/gssapi.h> |
| + | # endif |
| # endif | |
| #endif | |