diff --git a/www/phantomjs/patches/patch-src_webpage_cpp b/www/phantomjs/patches/patch-src_webpage_cpp new file mode 100644 index 00000000000..7d330528ca2 --- /dev/null +++ b/www/phantomjs/patches/patch-src_webpage_cpp @@ -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 "" + #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"