svn commit: r425017 - in head/www/lighttpd: . files
Guido Falsi
madpilot at FreeBSD.org
Mon Oct 31 17:55:25 UTC 2016
Author: madpilot
Date: Mon Oct 31 17:55:23 2016
New Revision: 425017
URL: https://svnweb.freebsd.org/changeset/ports/425017
Log:
Fix this port at runtime on 9.3.
PR: 213848
Submitted by: cedric at precidata.com
Approved by: pkubaj at anongoth.pl (maintainer)
Added:
head/www/lighttpd/files/patch-src_mod__cgi.c (contents, props changed)
Modified:
head/www/lighttpd/Makefile
Modified: head/www/lighttpd/Makefile
==============================================================================
--- head/www/lighttpd/Makefile Mon Oct 31 17:52:45 2016 (r425016)
+++ head/www/lighttpd/Makefile Mon Oct 31 17:55:23 2016 (r425017)
@@ -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/
Added: head/www/lighttpd/files/patch-src_mod__cgi.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/lighttpd/files/patch-src_mod__cgi.c Mon Oct 31 17:55:23 2016 (r425017)
@@ -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) \
More information about the svn-ports-all
mailing list