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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17e13f7c07497ac0437c20602d7f1b0305a86435;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 3daa69b1e9..c15d53690a 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -114,8 +114,7 @@ static NtCloseFunc *NtClose; #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)