mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-29 09:38:49 +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
|
||||
# define _GNU_SOURCE 1
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <malloc.h>
|
||||
# include <windows.h>
|
||||
@ -68,6 +69,7 @@
|
||||
# include <sys/file.h>
|
||||
# endif
|
||||
# include <fcntl.h>
|
||||
# define MDB_USE_PWRITEV
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user