]> 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:39:27 +0000 (02:39 +0100)
It also contains the cacheflush function declaration.

libraries/liblmdb/mdb.c

index 527a47b8f15a1e82dd55380f5b38024faa31ce9a..f96dc5af9537548ce7a1b88d37a3c3da2d89686c 100644 (file)
@@ -77,8 +77,7 @@
 
 #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)