mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user