|
Line 0
Link Here
|
|
|
1 |
--- src/ftp_session.c.orig Sun Jun 17 03:45:08 2001 |
| 2 |
+++ src/ftp_session.c Sun Jun 17 03:46:26 2001 |
| 3 |
@@ -1165,7 +1165,7 @@ |
| 4 |
/* for sendfile(), we still have to use a loop to avoid |
| 5 |
having our watchdog time us out on large files - it does |
| 6 |
allow us to avoid an extra copy to/from user space */ |
| 7 |
-#ifdef HAVE_SENDFILE |
| 8 |
+/* #ifdef HAVE_SENDFILE |
| 9 |
offset = f->file_offset; |
| 10 |
file_size = stat_buf.st_size - offset; |
| 11 |
while (offset < stat_buf.st_size) { |
| 12 |
@@ -1200,7 +1200,7 @@ |
| 13 |
|
| 14 |
watchdog_defer_watched(f->watched); |
| 15 |
} |
| 16 |
-#else |
| 17 |
+#else */ |
| 18 |
for (;;) { |
| 19 |
read_ret = read(file_fd, buf, sizeof(buf)); |
| 20 |
if (read_ret == -1) { |
| 21 |
@@ -1219,7 +1219,7 @@ |
| 22 |
|
| 23 |
watchdog_defer_watched(f->watched); |
| 24 |
} |
| 25 |
-#endif /* HAVE_SENDFILE */ |
| 26 |
+/* #endif */ /* HAVE_SENDFILE */ |
| 27 |
} |
| 28 |
|
| 29 |
/* disconnect */ |