commit: bd7a23962492f23568be67e7b1eae34b159c2da8 Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Sat Apr 12 08:57:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Apr 12 16:34:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd7a2396
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 <zhixu.liu <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41551 Signed-off-by: Sam James <sam <AT> gentoo.org> 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 cec5517e741c..4698c415bc57 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 <gssapi.h> -#elif defined(HAVE_GSSAPI_GSSAPI_KRB5_H) -+#else ++#endif +#ifdef HAVE_GSSAPI_GSSAPI_H #include <gssapi/gssapi.h> +#endif +#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H #include <gssapi/gssapi_krb5.h> #endif -+#endif #ifdef CONFIGURE_KRB5_CCNAME #include <krb5.h> #endif