win: Export eio__pread and eio__pwrite so node_file can use it

This commit is contained in:
Bert Belder
2010-11-24 23:22:19 +01:00
committed by Ryan Dahl
parent d1d4695474
commit 4476ce04dc
2 changed files with 10 additions and 2 deletions

4
deps/libeio/eio.c vendored
View File

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

8
deps/libeio/eio.h vendored
View File

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