from mozilla/lmdb : Use sys/cachectl.h rather than asm/cachectl.h on mips (b7df2ca)

lofire0_1_0
Niko 2 years ago
parent 96b9b77ebf
commit b0ab9a151c
  1. 3
      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 <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)

Loading…
Cancel
Save