View | Details | Raw Unified | Return to bug 213848 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME?=	lighttpd
4
PORTNAME?=	lighttpd
5
PORTVERSION=	1.4.42
5
PORTVERSION=	1.4.42
6
PORTREVISION=	1
6
CATEGORIES?=	www
7
CATEGORIES?=	www
7
MASTER_SITES?=	http://download.lighttpd.net/lighttpd/releases-1.4.x/
8
MASTER_SITES?=	http://download.lighttpd.net/lighttpd/releases-1.4.x/
8
9
(-)files/patch-src_mod__cgi.c (+14 lines)
Line 0 Link Here
1
--- src/mod_cgi.c.orig	2016-10-16 10:48:26 UTC
2
+++ src/mod_cgi.c
3
@@ -36,9 +36,9 @@
4
 #include <stdio.h>
5
 #include <fcntl.h>
6
 
7
-#ifdef O_CLOEXEC
8
+#if defined(O_CLOEXEC) && __FreeBSD_version >= 1000032
9
 #define pipe_cloexec(pipefd) pipe2((pipefd), O_CLOEXEC)
10
-#elif defined FD_CLOEXEC
11
+#elif defined(FD_CLOEXEC) && __FreeBSD_version >= 1000032
12
 #define pipe_cloexec(pipefd) \
13
   (   0 == pipe(pipefd) \
14
    && 0 == fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) \

Return to bug 213848