krb5: include config.h before string.h
authorLuke Howard <lukeh@padl.com>
Fri, 6 Jan 2023 23:58:38 +0000 (10:58 +1100)
committerLuke Howard <lukeh@padl.com>
Sat, 7 Jan 2023 01:08:35 +0000 (12:08 +1100)
Solaris requires __EXTENSIONS__ to be defined before including string.h so that
the strnlen() prototype is visible

lib/krb5/aname_to_localname.c

index 8515c306e69ea9c82984bd43aad99f136531129b..307d421daa03df4ac12c689f3cbed17c0e58af21 100644 (file)
  * SUCH DAMAGE.
  */
 
-#include <string.h>
 #include "krb5_locl.h"
 #include "an2ln_plugin.h"
 #include "db_plugin.h"
 
+#include <string.h>
+
 /* 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 *);