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=a46d78e52098078786abfddd27908835efdde0df;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 3b4652ec64..6fc2abdf0a 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)