1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
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:
Ulrich Drepper
2000-01-02 08:45:58 +00:00
parent 8d6f1731fc
commit 793bd4d9eb
6 changed files with 667 additions and 5 deletions

View File

@ -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 *);