summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--javascript/nojs.c4
1 files changed, 3 insertions, 1 deletions
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;
}