From bd7a23962492f23568be67e7b1eae34b159c2da8 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Sat, 12 Apr 2025 16:57:49 +0800 Subject: [PATCH] sys-auth/nss_ldap: replace #else -> #endif "gssapi.h" is a wrapper to "gssapi/gssapi.h" but w/o "gssapi/gssapi_krb5.h", then build will fail with: > error: call to undeclared function 'gss_krb5_ccache_name'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Signed-off-by: Z. Liu Closes: https://github.com/gentoo/gentoo/pull/41551 Signed-off-by: Sam James --- sys-auth/nss_ldap/files/nss_ldap-257.2-gssapi-headers.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys-auth/nss_ldap/files/nss_ldap-257.2-gssapi-headers.patch b/sys-auth/nss_ldap/files/nss_ldap-257.2-gssapi-headers.patch index cec5517e741cf..4698c415bc571 100644 --- a/sys-auth/nss_ldap/files/nss_ldap-257.2-gssapi-headers.patch +++ b/sys-auth/nss_ldap/files/nss_ldap-257.2-gssapi-headers.patch @@ -47,19 +47,18 @@ diff -ruN nss_ldap-257.2.orig/configure.in nss_ldap-257.2/configure.in diff -ruN nss_ldap-257.2.orig/ldap-nss.c nss_ldap-257.2/ldap-nss.c --- nss_ldap-257.2.orig/ldap-nss.c 2007-10-24 14:22:55.000000000 +0200 +++ nss_ldap-257.2/ldap-nss.c 2007-10-24 14:27:32.000000000 +0200 -@@ -82,10 +82,14 @@ +@@ -82,10 +82,13 @@ #endif #ifdef HAVE_GSSAPI_H #include -#elif defined(HAVE_GSSAPI_GSSAPI_KRB5_H) -+#else ++#endif +#ifdef HAVE_GSSAPI_GSSAPI_H #include +#endif +#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H #include #endif -+#endif #ifdef CONFIGURE_KRB5_CCNAME #include #endif