blob: 741d7affd7d66814baf132ed72562a576d3d6f16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- plib/safeio.c.orig 2013-07-04 11:10:49 UTC
+++ plib/safeio.c
@@ -448,7 +448,7 @@
{
int err;
-#if defined(__FreeBSD__) && __FreeBSD__ >= 3
+#if (defined(__FreeBSD__) && __FreeBSD__ >= 3) || defined(__DragonFly__)
off_t sbytes;
while ((err = sendfile(to_fd, from_fd, *start, len,
NULL, &sbytes, 0)) == -1) {
|