From fae7b81589337c87536252fe690e478e180f21e7 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:24:59 +0100 Subject: [PATCH] On windows use eio__pread and eio__pwrite (hack) --- src/node_file.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/node_file.cc b/src/node_file.cc index a9f438a7027..241965c7c69 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -24,6 +24,13 @@ #define PATH_MAX 4096 #endif +/* HACK to use pread/pwrite from eio if our platform doesn't have it /* +/* TODO fixme */ +#if !HAVE_PREADWRITE +# define pread eio__pread +# define pwrite eio__pwrite +#endif + #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) namespace node {