From f78cb2ca4bd9241d6908cbefe339498c79854e58 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Tue, 17 May 2011 21:48:33 -0700 Subject: [PATCH] Only include myflags if we use HAVE_DB3 --- lib/roken/ndbm_wrap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/roken/ndbm_wrap.c b/lib/roken/ndbm_wrap.c index 5663ec2d7..a15f4df90 100644 --- a/lib/roken/ndbm_wrap.c +++ b/lib/roken/ndbm_wrap.c @@ -148,8 +148,10 @@ dbm_nextkey (DBM *db) ROKEN_LIB_FUNCTION DBM* ROKEN_LIB_CALL dbm_open (const char *file, int flags, mode_t mode) { - DB *db; +#ifdef HAVE_DB3 int myflags = 0; +#endif + DB *db; char *fn = malloc(strlen(file) + 4); if(fn == NULL) return NULL;