mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
2000-01-02 Ulrich Drepper <drepper@cygnus.com> * nss/nss_db/nss_db.h: Add definitions needed for makedb. * nss/nss_db/dummy-db.h: Likewise. * nss/makedb.c: New file. Copied from file in db2, modified to not depend on being linked against libdb.
This commit is contained in:
@ -57,14 +57,14 @@ load_db (void)
|
||||
static const char *libnames[] = { "libdb.so.3" };
|
||||
int x;
|
||||
|
||||
for(x = 0; x < 1; ++x)
|
||||
for(x = 0; x < sizeof (libnames) / sizeof (libnames[0]); ++x)
|
||||
{
|
||||
libdb_handle = dlopen (libnames[x], RTLD_LAZY);
|
||||
if (libdb_handle == NULL)
|
||||
continue;
|
||||
|
||||
libdb_db_open = dlsym (libdb_handle, "db_open");
|
||||
if (libdb_db_open)
|
||||
if (libdb_db_open != NULL)
|
||||
{
|
||||
/* Alright, we got a library. Now find out which version it is. */
|
||||
const char *(*db_version) (int *, int *, int *);
|
||||
|
Reference in New Issue
Block a user