From a5f2a8cfba8b0c9cd30998d714c5ce09d2f46c34 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 13 Jun 2012 18:02:46 +0000 Subject: Fix stupid braino missing include for non js case svn path=/trunk/netsurf/; revision=13965 --- javascript/nojs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'javascript') diff --git a/javascript/nojs.c b/javascript/nojs.c index 20c7dc1fa..ec0ccc0f8 100644 --- a/javascript/nojs.c +++ b/javascript/nojs.c @@ -20,6 +20,8 @@ * Dummy implementation of javascript engine functions. */ +#include "content/content.h" + #include "javascript/js.h" #include "utils/log.h" @@ -45,7 +47,7 @@ jsobject *js_newcompartment(jscontext *ctx, struct content* c) return NULL; } -bool js_exec(jscontext *ctx, char *txt, int txtlen) +bool js_exec(jscontext *ctx, const char *txt, int txtlen) { return true; } -- cgit v1.2.3