build with clang
This commit is contained in:
parent
5427f8c26e
commit
4b9042d235
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2017/04/10 11:46:35 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2017/05/25 13:24:10 espie Exp $
|
||||
|
||||
COMMENT= web proxy with antivirus filter
|
||||
|
||||
@ -31,3 +31,12 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/INSTALL ${WRKSRC}/COPYING ${PREFIX}/share/doc/havp
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
# old gcc doesn't give a shit about push_back...
|
||||
# but formally:
|
||||
# void push_back( const T& value );
|
||||
# void push_back( T&& value ); (in C++11)
|
||||
# so we need T&& with clang
|
||||
.if ${PROPERTIES:Mclang}
|
||||
CFLAGS += -std=c++11
|
||||
.endif
|
||||
|
13
www/havp/patches/patch-havp_sockethandler_h
Normal file
13
www/havp/patches/patch-havp_sockethandler_h
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-havp_sockethandler_h,v 1.1 2017/05/25 13:24:10 espie Exp $
|
||||
|
||||
Index: havp/sockethandler.h
|
||||
--- havp/sockethandler.h.orig
|
||||
+++ havp/sockethandler.h
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <string>
|
||||
+#include <sys/select.h>
|
||||
|
||||
using namespace std;
|
||||
|
Loading…
Reference in New Issue
Block a user