From: Michael Andres Date: Wed, 24 Nov 2010 07:45:49 +0000 (+0100) Subject: db.h can be found under /usr/include on Fedora, etc. X-Git-Tag: BASE-SuSE-Code-12_1-Branch~157^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=521b28a82e9922b65a85ced7153003ce75de8ca5;p=thirdparty%2Flibsolv.git db.h can be found under /usr/include on Fedora, etc. --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 34f2b659..eed8a961 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;