#ifndef NSSWITCH_INTERNAL_H
#define NSSWITCH_INTERNAL_H
+#include <features.h>
#include "config.h"
/* glibc/config.h.in */
-#if defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
+#if __GLIBC_PREREQ(2, 27)
+# define internal_function
+#elif defined USE_REGPARMS && !defined PROF && !defined __BOUNDED_POINTERS__
# define internal_function __attribute__ ((regparm (3), stdcall))
#else
# define internal_function
const char *defconfig, service_user **ni);
extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
+/* glibc/nss/XXX-lookup.c */
+extern int __nss_passwd_lookup (service_user **ni, const char *fct_name,
+ void **fctp) internal_function;
+extern int __nss_group_lookup (service_user **ni, const char *fct_name,
+ void **fctp) internal_function;
+
#endif /* NSSWITCH_INTERNAL_H */