]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: fix gssapi.h include on IBMi
authorAndrew <akirillo@uk.ibm.com>
Mon, 3 Nov 2025 13:53:00 +0000 (13:53 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 8 Nov 2025 09:25:12 +0000 (10:25 +0100)
Fixes #19336
Closes #19337

lib/config-os400.h
lib/urldata.h
lib/vauth/vauth.h
lib/version.c

index bccdb4a8974dfc0bcfdce2a14ffe2a6c59ec8bbd..b08400fe972aea0053f25d0ab607a399ee6d7a04 100644 (file)
 /* 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
 
index f79ccca0aceb44ef246ea1ea7356856a9b615f2f..f92bfcb3b2a81b7b679cc47e5c445e4cac3269fd 100644 (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
 
index 2ba8e471dc0032cfa7d6a0e7fa18f0d42cea67b2..51b9f41c1b041dea7d0c9b472bd6dd0b16231ac7 100644 (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
 
index 4c7e5712f0f9b1307c26a44cfb2c0dd9282ece92..f02b92fedfc78915c9caae38b9e685a1b08a238d 100644 (file)
 # 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