lmdb: use pwritev() on non-windows systems (MDB_USE_PWRITEV).

Change-Id: Iebd69846fc87cd6bb584002b366837ecb631b603
This commit is contained in:
Leo Yuriev 2015-01-17 17:48:54 +03:00
parent 1ca2b54966
commit 48e85e891e

2
mdb.c
View File

@ -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
/*****************************************************************************