diff options
author | Bert Belder <bertbelder@gmail.com> | 2010-11-24 23:22:19 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-11-29 23:46:46 -0800 |
commit | 4476ce04dc39f07edc97ca0312fdaf2492d04fe7 (patch) | |
tree | 94d276bce4acdf4997d289a8df6fb721e6027f90 /deps/libeio | |
parent | d1d4695474b8ea3dcb9ccf324571da3d8b47f2d7 (diff) | |
download | node-new-4476ce04dc39f07edc97ca0312fdaf2492d04fe7.tar.gz |
win: Export eio__pread and eio__pwrite so node_file can use it
Diffstat (limited to 'deps/libeio')
-rw-r--r-- | deps/libeio/eio.c | 4 | ||||
-rw-r--r-- | deps/libeio/eio.h | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/deps/libeio/eio.c b/deps/libeio/eio.c index add54d492a..ce0ff39861 100644 --- a/deps/libeio/eio.c +++ b/deps/libeio/eio.c @@ -810,7 +810,7 @@ int eio_poll (void) # define pread eio__pread # define pwrite eio__pwrite -static ssize_t +ssize_t eio__pread (int fd, void *buf, size_t count, off_t offset) { ssize_t res; @@ -826,7 +826,7 @@ eio__pread (int fd, void *buf, size_t count, off_t offset) return res; } -static ssize_t +ssize_t eio__pwrite (int fd, void *buf, size_t count, off_t offset) { ssize_t res; diff --git a/deps/libeio/eio.h b/deps/libeio/eio.h index e93bc46e89..129cc4c0a7 100644 --- a/deps/libeio/eio.h +++ b/deps/libeio/eio.h @@ -332,6 +332,14 @@ void eio_destroy (eio_req *req); ssize_t eio_sendfile_sync (int ofd, int ifd, off_t offset, size_t count); +/*****************************************************************************/ +/* export these so node_file can use these function instead of pread/write */ + +#if !HAVE_PREADWRITE +ssize_t eio__pread (int fd, void *buf, size_t count, off_t offset); +ssize_t eio__pwrite (int fd, void *buf, size_t count, off_t offset); +#endif + #ifdef __cplusplus } #endif |