mdbx: conditionally use cacheflush() for linux < 2.6.11

Change-Id: Id34c67797e14f709f767bf1b687319cd2dfef874
This commit is contained in:
Leonid Yuriev
2019-07-22 00:19:15 +03:00
parent a6bad26e1d
commit 663f3f3c58
3 changed files with 47 additions and 10 deletions

View File

@@ -462,6 +462,10 @@ int mdbx_vasprintf(char **strp, const char *fmt, va_list ap);
/* max bytes to write in one call */
#define MAX_WRITE UINT32_C(0x3fff0000)
#if defined(__linux__) || defined(__gnu_linux__)
extern uint32_t linux_kernel_version;
#endif /* Linux */
/* Get the size of a memory page for the system.
* This is the basic size that the platform's memory manager uses, and is
* fundamental to the use of memory-mapped files. */