summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2010-01-02 12:58:37 +0000
committerroot <root>2010-01-02 12:58:37 +0000
commitf4ac661c84499267a8ec190da3cb1b270c87c1db (patch)
treec3d59da7009db2c6777d508f53063ce0590006ce /eio.c
parente1465245aa1e0fc553bd2bec99e8e67c8caa7a3a (diff)
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c12
1 files 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 <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 */
{