handle both ndbm.h and gdbm/ndbm.h

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9153 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-11-13 22:30:14 +00:00
parent 56e9c0bd27
commit 41e3980f6b
2 changed files with 3 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ static struct hdb_method methods[] = {
#ifdef HAVE_DB_H #ifdef HAVE_DB_H
{"db:", hdb_db_create}, {"db:", hdb_db_create},
#endif #endif
#ifdef HAVE_NDBM_H #if defined(HAVE_NDBM_H) || defined(HAVE_GDBM_NDBM_H)
{"ndbm:", hdb_ndbm_create}, {"ndbm:", hdb_ndbm_create},
#endif #endif
#ifdef OPENLDAP #ifdef OPENLDAP

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -35,7 +35,7 @@
RCSID("$Id$"); RCSID("$Id$");
#ifdef HAVE_NDBM_H #if defined(HAVE_NDBM_H) || defined(GDBM_NDBM_H)
struct ndbm_db { struct ndbm_db {
DBM *db; DBM *db;
@@ -312,5 +312,4 @@ hdb_ndbm_create(krb5_context context, HDB **db,
return 0; return 0;
} }
#endif #endif