mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:44:13 +08:00
lmdb: use pwritev() on non-windows systems (MDB_USE_PWRITEV).
Change-Id: Iebd69846fc87cd6bb584002b366837ecb631b603
This commit is contained in:
parent
1ca2b54966
commit
48e85e891e
2
mdb.c
2
mdb.c
@ -35,6 +35,7 @@
|
|||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
# define _GNU_SOURCE 1
|
# define _GNU_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
@ -68,6 +69,7 @@
|
|||||||
# include <sys/file.h>
|
# include <sys/file.h>
|
||||||
# endif
|
# endif
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
|
# define MDB_USE_PWRITEV
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user