lib: fix gssapi.h include on IBMi

Fixes #19336
Closes #19337
This commit is contained in:
Andrew 2025-11-03 13:53:00 +00:00 committed by Daniel Stenberg
parent 9d1acd048c
commit 2d99cf0761
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
4 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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