Date: Thu, 3 Nov 2016 16:14:10 +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: r425245 - in head/www/lighttpd: . files Message-ID: <201611031614.uA3GEATe049262@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: madpilot Date: Thu Nov 3 16:14:10 2016 New Revision: 425245 URL: https://svnweb.freebsd.org/changeset/ports/425245 Log: - Modify patch to check is we are on FreeBSD before checking __FreeBSD_version. [1] - Explicitly include param.h Suggested by: marino@ [1] Modified: head/www/lighttpd/Makefile head/www/lighttpd/files/patch-src_mod__cgi.c Modified: head/www/lighttpd/Makefile ============================================================================== --- head/www/lighttpd/Makefile Thu Nov 3 16:11:48 2016 (r425244) +++ head/www/lighttpd/Makefile Thu Nov 3 16:14:10 2016 (r425245) @@ -3,7 +3,7 @@ PORTNAME?= lighttpd PORTVERSION= 1.4.43 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES?= www MASTER_SITES?= http://download.lighttpd.net/lighttpd/releases-1.4.x/ Modified: head/www/lighttpd/files/patch-src_mod__cgi.c ============================================================================== --- head/www/lighttpd/files/patch-src_mod__cgi.c Thu Nov 3 16:11:48 2016 (r425244) +++ head/www/lighttpd/files/patch-src_mod__cgi.c Thu Nov 3 16:14:10 2016 (r425245) @@ -1,11 +1,13 @@ ---- src/mod_cgi.c.orig 2016-11-02 13:53:21 UTC +--- src/mod_cgi.c.orig 2016-10-31 13:16:40 UTC +++ src/mod_cgi.c -@@ -36,7 +36,7 @@ +@@ -35,8 +35,9 @@ + #include <stdio.h> #include <fcntl.h> - ++#include <sys/param.h> + -#if defined(O_CLOEXEC) && (!defined(__FreeBSD__) || defined(F_DUPFD_CLOEXEC)) -+#if defined(O_CLOEXEC) && __FreeBSD_version >= 1000032 ++#if defined(O_CLOEXEC) && (!defined(__FreeBSD__) || __FreeBSD_version >= 1000032) #define pipe_cloexec(pipefd) pipe2((pipefd), O_CLOEXEC) #elif defined FD_CLOEXEC #define pipe_cloexec(pipefd) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611031614.uA3GEATe049262>