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 {