From f4ac661c84499267a8ec190da3cb1b270c87c1db Mon Sep 17 00:00:00 2001 From: root Date: Sat, 2 Jan 2010 12:58:37 +0000 Subject: *** empty log message *** --- eio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eio.c b/eio.c index 0ed2e85..af91074 100644 --- a/eio.c +++ b/eio.c @@ -115,7 +115,6 @@ # include # elif __solaris # include -# elif defined _WIN32 # else # error sendfile support requested but not available # endif @@ -926,13 +925,13 @@ eio__sendfile (int ofd, int ifd, off_t offset, size_t count, etp_worker *self) res = sbytes; } -# elif defined __APPLE__ +# elif defined (__APPLE__) { - off_t bytes = count; - res = sendfile (ifd, ofd, offset, &bytes, 0, 0); + off_t sbytes = count; + res = sendfile (ifd, ofd, offset, &sbytes, 0, 0); - if (res < 0 && errno == EAGAIN && bytes) + if (res < 0 && errno == EAGAIN && sbytes) res = sbytes; } @@ -956,7 +955,8 @@ eio__sendfile (int ofd, int ifd, off_t offset, size_t count, etp_worker *self) } # endif -#elif defined _WIN32 + +#elif defined (_WIN32) /* does not work, just for documentation of what would need to be done */ { -- cgit v1.2.3