svn commit: r559009 - head/www/lighttpd/files

Piotr Kubaj pkubaj at FreeBSD.org
Wed Dec 23 18:29:01 UTC 2020


Author: pkubaj
Date: Wed Dec 23 18:29:00 2020
New Revision: 559009
URL: https://svnweb.freebsd.org/changeset/ports/559009

Log:
  www/lighttpd: fix build on head
  
  head introduces copy_file_range, but doesn't define loff_t.

Added:
  head/www/lighttpd/files/patch-src_mod__webdav.c   (contents, props changed)

Added: head/www/lighttpd/files/patch-src_mod__webdav.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/lighttpd/files/patch-src_mod__webdav.c	Wed Dec 23 18:29:00 2020	(r559009)
@@ -0,0 +1,11 @@
+--- src/mod_webdav.c.orig	2020-12-23 18:18:24 UTC
++++ src/mod_webdav.c
+@@ -4574,7 +4574,7 @@ mod_webdav_put_deprecated_unsafe_partial_put_compat (r
+         return HANDLER_FINISHED;
+     }
+ 
+-  #ifdef HAVE_COPY_FILE_RANGE
++  #if defined(HAVE_COPY_FILE_RANGE) && !defined(__FreeBSD__)
+     /* use Linux copy_file_range() if available
+      * (Linux 4.5, but glibc 2.27 provides a user-space emulation)
+      * fd_in and fd_out must be on same mount (handled in mod_webdav_put_prep())


More information about the svn-ports-all mailing list