#include <errno.h>
#include <netdb.h>
#include <bits/libc-lock.h>
-#include <link.h> /* We need some help from ld.so. */
#include <search.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <elf/ldsodefs.h> /* We need some help from ld.so. */
#if !defined DO_STATIC_NSS || defined PIC
# include <gnu/lib-names.h>
__libc_lock_define_initialized (static, lock)
-
#if !defined DO_STATIC_NSS || defined PIC
/* String with revision number of the shared object files. */
static const char *const __nss_shlib_revision = LIBNSS_FILES_SO + 15;
/* -1 == not found
- 0 == adjusted for next function
+ 0 == function found
1 == finished */
int
__nss_lookup (service_user **ni, const char *fct_name, void **fctp)
nss_dlerror_run (void (*operate) (void *), void *args)
{
char *last_errstring = NULL;
- const char *last_object_name = NULL;
int result;
- (void) _dl_catch_error (&last_errstring, &last_object_name, operate, args);
+ (void) _dl_catch_error (&last_errstring, operate, args);
result = last_errstring != NULL;
if (result)