Hi,

Here a proposal to fix build broken by the recent clang6 update.

Regards.
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/libv8/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile	8 Nov 2017 18:06:24 -0000	1.17
+++ Makefile	7 Apr 2018 13:17:24 -0000
@@ -6,7 +6,7 @@ COMMENT=	V8 JavaScript for clients and s
 
 V8_VERSION=	3.16.14.11
 EPOCH=		0
-REVISION=	0
+REVISION=	1
 V8_ARCH=	${MACHINE_ARCH:S/amd64/x64/:S/i386/ia32/}
 V8_RELEASE=	release
 
Index: patches/patch-src_stub-cache_cc
===================================================================
RCS file: patches/patch-src_stub-cache_cc
diff -N patches/patch-src_stub-cache_cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_stub-cache_cc	7 Apr 2018 13:17:24 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: src/stub-cache.cc
+--- src/stub-cache.cc.orig
++++ src/stub-cache.cc
+@@ -1376,7 +1376,7 @@ Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flag
+                                             Handle<String> name) {
+   return (FLAG_print_code_stubs && !name.is_null())
+       ? GetCodeWithFlags(flags, *name->ToCString())
+-      : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
++      : GetCodeWithFlags(flags, static_cast<char*>(NULL));
+ }
+ 
+ 

Reply via email to