From: Mike Hommey Date: Thu, 6 Jun 2019 00:06:06 +0000 (+0900) Subject: ITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips X-Git-Tag: LMDB_0.9.30~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bb20ed0823877289246eb220bf2e207affcc0db;p=thirdparty%2Fopenldap.git ITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips It also contains the cacheflush function declaration. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 527a47b8f1..f96dc5af95 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -77,8 +77,7 @@ #if defined(__mips) && defined(__linux) /* MIPS has cache coherency issues, requires explicit cache control */ -#include -extern int cacheflush(char *addr, int nbytes, int cache); +#include #define CACHEFLUSH(addr, bytes, cache) cacheflush(addr, bytes, cache) #else #define CACHEFLUSH(addr, bytes, cache)