]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9030 - Use sys/cachectl.h rather than asm/cachectl.h on mips
authorMike Hommey <mh@glandium.org>
Thu, 6 Jun 2019 00:06:06 +0000 (09:06 +0900)
committerHoward Chu <hyc@openldap.org>
Fri, 23 Sep 2022 01:38:14 +0000 (02:38 +0100)
It also contains the cacheflush function declaration.

libraries/liblmdb/mdb.c

index 3daa69b1e9c9f2b4c44085449de20fdd2ac9091f..c15d53690a2fc12aea449737e8f77e755a6a4859 100644 (file)
@@ -114,8 +114,7 @@ static NtCloseFunc *NtClose;
 
 #if defined(__mips) && defined(__linux)
 /* MIPS has cache coherency issues, requires explicit cache control */
-#include <asm/cachectl.h>
-extern int cacheflush(char *addr, int nbytes, int cache);
+#include <sys/cachectl.h>
 #define CACHEFLUSH(addr, bytes, cache) cacheflush(addr, bytes, cache)
 #else
 #define CACHEFLUSH(addr, bytes, cache)