ports/ftp/pftpd/files/patch-plib_safeio.c
John Marino 0ef457ae80 ftp/pftpd: Add DragonFly support
Bring in fix from dports (port is not maintained)
2015-03-26 14:18:50 +00:00

11 lines
335 B
C

--- 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) {