projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7f0341
)
On windows use eio__pread and eio__pwrite (hack)
author
Bert Belder
<bertbelder@gmail.com>
Thu, 25 Nov 2010 00:24:59 +0000
(
01:24
+0100)
committer
Bert Belder
<bertbelder@gmail.com>
Mon, 20 Dec 2010 22:50:41 +0000
(23:50 +0100)
src/node_file.cc
patch
|
blob
|
history
diff --git
a/src/node_file.cc
b/src/node_file.cc
index
a9f438a
..
241965c
100644
(file)
--- 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 {