Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 17:55:24 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425017 - in head/www/lighttpd: . files
Message-ID:  <201610311755.u9VHtOoT007283@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@precidata.com
  Approved by:	pkubaj@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) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610311755.u9VHtOoT007283>