From owner-svn-ports-all@freebsd.org Mon Oct 31 17:55:25 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B03BC1654D; Mon, 31 Oct 2016 17:55:25 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0AC7C1247; Mon, 31 Oct 2016 17:55:24 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9VHtOv9007285; Mon, 31 Oct 2016 17:55:24 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9VHtOoT007283; Mon, 31 Oct 2016 17:55:24 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201610311755.u9VHtOoT007283@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Mon, 31 Oct 2016 17:55:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425017 - in head/www/lighttpd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2016 17:55:25 -0000 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 + #include + #include ++#include + + #include + #include + +-#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) \