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@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/41551
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Z. Liu
2025-04-12 16:57:49 +08:00
committed by Sam James
parent 282b8bf468
commit bd7a239624

View File

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