On windows use eio__pread and eio__pwrite (hack)
authorBert Belder <bertbelder@gmail.com>
Thu, 25 Nov 2010 00:24:59 +0000 (01:24 +0100)
committerBert Belder <bertbelder@gmail.com>
Mon, 20 Dec 2010 22:50:41 +0000 (23:50 +0100)
src/node_file.cc

index a9f438a..241965c 100644 (file)
 #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 {