summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-01-02 03:43:55 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-01-02 03:43:55 -0500
commitd8bceb1472fddfab56437449a5be65341a3b4454 (patch)
tree5ae06d1e6a70f2ffd0df47327b5c24a8a972121d
parent5567fb64953637b93af2b0f414e3fd3a4dc319e7 (diff)
downloadlighttpd-git-d8bceb1472fddfab56437449a5be65341a3b4454.tar.gz
[mod_webdav] copy_file_range() new in FreeBSD 13
(take 2) adjust feature defines for header visibility of copy_file_range() (introduced in FreeBSD 13) x-ref: https://redmine.lighttpd.net/issues/3128 https://github.com/freebsd/freebsd-src/blob/main/sys/sys/cdefs.h#L634
-rw-r--r--src/mod_webdav.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_webdav.c b/src/mod_webdav.c
index 2492400f..e9645e26 100644
--- a/src/mod_webdav.c
+++ b/src/mod_webdav.c
@@ -169,13 +169,11 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-#ifdef HAVE_COPY_FILE_RANGE /* FreeBSD 13+ */
#ifdef __FreeBSD__ /* FreeBSD strict compliance hides libc extensions */
/*#define _XOPEN_SOURCE 700*//*(defined above)*/
-#define _ISOC11_SOURCE
+#define _ISOC11_SOURCE 1
#define __BSD_VISIBLE 1
#endif
-#endif
#include "first.h" /* first */
#include "sys-mmap.h"