add a patch to build phantomjs with clang 6.

ok jasper@.
This commit is contained in:
rpointel 2018-04-10 20:04:44 +00:00
parent b54f2778a6
commit 72453e4db0

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_webpage_cpp,v 1.1 2018/04/10 20:04:44 rpointel Exp $
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"