Hi,

attached is the diff which permits to build phantomjs with clang 6.

Ok?

Cheers,

Remi.
Index: patches/patch-src_webpage_cpp
===================================================================
RCS file: patches/patch-src_webpage_cpp
diff -N patches/patch-src_webpage_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_webpage_cpp	10 Apr 2018 18:41:54 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Index: src/webpage.cpp
+--- src/webpage.cpp.orig
++++ src/webpage.cpp
+@@ -77,8 +77,8 @@
+ #define BLANK_HTML                      "<html><head></head><body></body></html>"
+ #define CALLBACKS_OBJECT_NAME           "_phantom"
+ #define INPAGE_CALL_NAME                "window.callPhantom"
+-#define CALLBACKS_OBJECT_INJECTION      INPAGE_CALL_NAME" = function() { return window."CALLBACKS_OBJECT_NAME".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };"
+-#define CALLBACKS_OBJECT_PRESENT        "typeof(window."CALLBACKS_OBJECT_NAME") !== \"undefined\";"
++#define CALLBACKS_OBJECT_INJECTION      INPAGE_CALL_NAME" = function() { return window." CALLBACKS_OBJECT_NAME ".call.call(_phantom, Array.prototype.slice.call(arguments, 0)); };"
++#define CALLBACKS_OBJECT_PRESENT        "typeof(window." CALLBACKS_OBJECT_NAME ") !== \"undefined\";"
+ 
+ #define STDOUT_FILENAME "/dev/stdout"
+ #define STDERR_FILENAME "/dev/stderr"

Reply via email to