summaryrefslogtreecommitdiff
path: root/ftp/pftpd/files/patch-plib_safeio.c
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-03-26 14:18:50 +0000
committerJohn Marino <marino@FreeBSD.org>2015-03-26 14:18:50 +0000
commit0ef457ae80c2dbe5fb8384a6c09b72cedbbe8d62 (patch)
treefc25fe2edfb976293f1e8ea0018f2d5b93cef409 /ftp/pftpd/files/patch-plib_safeio.c
parent- Update to 0.55 (diff)
ftp/pftpd: Add DragonFly support
Bring in fix from dports (port is not maintained)
Notes
Notes: svn path=/head/; revision=382318
Diffstat (limited to 'ftp/pftpd/files/patch-plib_safeio.c')
-rw-r--r--ftp/pftpd/files/patch-plib_safeio.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ftp/pftpd/files/patch-plib_safeio.c b/ftp/pftpd/files/patch-plib_safeio.c
new file mode 100644
index 000000000000..741d7affd7d6
--- /dev/null
+++ b/ftp/pftpd/files/patch-plib_safeio.c
@@ -0,0 +1,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) {