On windows use eio__pread and eio__pwrite (hack)

pull/22966/head
Bert Belder 2010-11-25 01:24:59 +01:00
parent c7f0341d88
commit fae7b81589
1 changed files with 7 additions and 0 deletions

View File

@ -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 {