mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
- Modify patch to check is we are on FreeBSD before checking
__FreeBSD_version. [1] - Explicitly include param.h Suggested by: marino@ [1]
This commit is contained in:
parent
16df9d6669
commit
fa7be87927
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425245
@ -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/
|
||||
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user