www/libevhtp: fix build for 8.4 systems

PR:		193615
Submitted by:	Jingfeng Yan <yan_jingfeng@yahoo.com>
Approved by:	mentors (implicit)
This commit is contained in:
Bartek Rutkowski 2014-10-01 13:14:10 +00:00
parent 3350fcfca5
commit 835612bf10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369725
2 changed files with 7 additions and 10 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= libevhtp
PORTVERSION= 1.2.9
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MAINTAINER= yan_jingfeng@yahoo.com

View file

@ -1,17 +1,14 @@
--- evhtp.c.orig 2014-03-23 07:50:50.000000000 -0400
+++ evhtp.c 2014-08-28 09:08:40.970619326 -0400
@@ -6,6 +6,10 @@
#include <signal.h>
--- evhtp.c.orig 2014-03-23 11:50:50.000000000 +0000
+++ evhtp.c 2014-09-13 12:37:11.000000000 +0000
@@ -7,6 +7,7 @@
#include <strings.h>
#include <inttypes.h>
+#ifdef SO_ACCEPTFILTER
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
#ifndef WIN32
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -2740,7 +2744,14 @@
#include <netinet/tcp.h>
@@ -2740,7 +2741,14 @@
sock = evconnlistener_get_fd(htp->server);