mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
Fix this port at runtime on 9.3.
PR: 213848 Submitted by: cedric@precidata.com Approved by: pkubaj@anongoth.pl (maintainer)
This commit is contained in:
parent
5fd006f5f6
commit
7ecd9b5ad8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425017
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME?= lighttpd
|
||||
PORTVERSION= 1.4.42
|
||||
PORTREVISION= 1
|
||||
CATEGORIES?= www
|
||||
MASTER_SITES?= http://download.lighttpd.net/lighttpd/releases-1.4.x/
|
||||
|
||||
|
19
www/lighttpd/files/patch-src_mod__cgi.c
Normal file
19
www/lighttpd/files/patch-src_mod__cgi.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- src/mod_cgi.c.orig 2016-10-16 10:48:26 UTC
|
||||
+++ src/mod_cgi.c
|
||||
@@ -32,13 +32,14 @@
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#include <assert.h>
|
||||
+#include <sys/param.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
-#ifdef O_CLOEXEC
|
||||
+#if defined(O_CLOEXEC) && __FreeBSD_version >= 1000032
|
||||
#define pipe_cloexec(pipefd) pipe2((pipefd), O_CLOEXEC)
|
||||
-#elif defined FD_CLOEXEC
|
||||
+#elif defined(FD_CLOEXEC)
|
||||
#define pipe_cloexec(pipefd) \
|
||||
( 0 == pipe(pipefd) \
|
||||
&& 0 == fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) \
|
Loading…
Reference in New Issue
Block a user