diff options
author | jlam <jlam> | 2003-09-08 02:09:04 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-09-08 02:09:04 +0000 |
commit | c0cf73285ef166cec87c6f115e1fe3d876c49d73 (patch) | |
tree | 8c9e3d3ff1447f6ceea657a8950de932d2c03027 /pkgtools/pkg_install | |
parent | 26a1bf46ab3cf92973da56502dd3e944697ae66b (diff) | |
download | pkgsrc-c0cf73285ef166cec87c6f115e1fe3d876c49d73.tar.gz |
The pkgdb_* functions should be no-ops on platforms that don't have the
db*() functions, so make the dummy pkgdb_open() always return 0 for a
successful open of the package dbfile.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/lib/pkgdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/lib/pkgdb.c b/pkgtools/pkg_install/files/lib/pkgdb.c index 7ea70a478ec..37975151339 100644 --- a/pkgtools/pkg_install/files/lib/pkgdb.c +++ b/pkgtools/pkg_install/files/lib/pkgdb.c @@ -1,4 +1,4 @@ -/* $NetBSD: pkgdb.c,v 1.15 2003/09/08 02:07:42 jlam Exp $ */ +/* $NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -8,7 +8,7 @@ #include <sys/cdefs.h> #endif #ifndef lint -__RCSID("$NetBSD: pkgdb.c,v 1.15 2003/09/08 02:07:42 jlam Exp $"); +__RCSID("$NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $"); #endif /* @@ -257,7 +257,7 @@ pkgdb_remove_pkg(const char *pkg) #else /* !HAVE_DBOPEN */ -int pkgdb_open(int mode) { return -1; } +int pkgdb_open(int mode) { return 0; } void pkgdb_close(void) {} int pkgdb_store(const char *key, const char *val) { return 0; } char *pkgdb_retrieve(const char *key) { return NULL; } |