From 521b28a82e9922b65a85ced7153003ce75de8ca5 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 24 Nov 2010 08:45:49 +0100 Subject: [PATCH] db.h can be found under /usr/include on Fedora, etc. --- ext/repo_rpmdb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 34f2b65..eed8a96 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -29,7 +29,7 @@ #ifndef DB_CREATE # ifdef FEDORA -# include +# include # else # include # endif @@ -1262,7 +1262,7 @@ opendbenv(const char *rootdir) } return dbenv; } - + static int count_headers(const char *rootdir, DB_ENV *dbenv) @@ -2367,7 +2367,7 @@ rpm_byrpmdbid(Id rpmdbid, const char *rootdir, void **statep) rpmhead->dp = rpmhead->data + rpmhead->cnt * 16; return rpmhead; } - + void * rpm_byfp(FILE *fp, const char *name, void **statep) { @@ -2533,7 +2533,7 @@ r64dec1(char *p, unsigned int *vp, int *eofp) return p; } -static unsigned int +static unsigned int crc24(unsigned char *p, int len) { unsigned int crc = 0xb704ceL; -- 2.7.4