PORTNAME= libevhtp
PORTVERSION= 1.2.9
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MAINTAINER= yan_jingfeng@yahoo.com
--- evhtp.c.orig 2014-03-23 07:50:50.000000000 -0400
--- evhtp.c.orig 2014-03-23 11:50:50.000000000 +0000
+++ evhtp.c 2014-08-28 09:08:40.970619326 -0400
+++ evhtp.c 2014-09-13 12:37:11.000000000 +0000
@@ -6,6 +6,10 @@
@@ -7,6 +7,7 @@
#include <signal.h>
#include <strings.h>
#include <inttypes.h>
+#ifdef SO_ACCEPTFILTER
#ifndef WIN32
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
#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);