From ed93098365eda5cd981fe38dd05065988024f149 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sat, 7 Jan 2023 10:58:38 +1100 Subject: [PATCH] krb5: include config.h before string.h Solaris requires __EXTENSIONS__ to be defined before including string.h so that the strnlen() prototype is visible --- lib/krb5/aname_to_localname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/krb5/aname_to_localname.c b/lib/krb5/aname_to_localname.c index 8515c306e..307d421da 100644 --- a/lib/krb5/aname_to_localname.c +++ b/lib/krb5/aname_to_localname.c @@ -31,11 +31,12 @@ * SUCH DAMAGE. */ -#include #include "krb5_locl.h" #include "an2ln_plugin.h" #include "db_plugin.h" +#include + /* Default plugin (DB using binary search of sorted text file) follows */ static krb5_error_code KRB5_LIB_CALL an2ln_def_plug_init(krb5_context, void **); static void KRB5_LIB_CALL an2ln_def_plug_fini(void *);