diff options
author | root <root> | 2010-01-02 12:58:37 +0000 |
---|---|---|
committer | root <root> | 2010-01-02 12:58:37 +0000 |
commit | f4ac661c84499267a8ec190da3cb1b270c87c1db (patch) | |
tree | c3d59da7009db2c6777d508f53063ce0590006ce | |
parent | e1465245aa1e0fc553bd2bec99e8e67c8caa7a3a (diff) |
*** empty log message ***
-rw-r--r-- | eio.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -115,7 +115,6 @@ # include <sys/socket.h> # elif __solaris # include <sys/sendfile.h> -# 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 */ { |