[gjs/wip/ptomato/mozjs31: 5/11] WIP - mozjs31



commit c051f6c7cf944c078b2f13b647b2e8e9382bf135
Author: Philip Chimento <philip endlessm com>
Date:   Thu Sep 1 18:41:45 2016 -0700

    WIP - mozjs31

 configure.ac        |    2 +-
 gjs/jsapi-util.h    |    1 +
 gjs/jsapi-wrapper.h |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b9e6c92..2ed2240 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ m4_define(glib_required_version, 2.50.0)
 GOBJECT_INTROSPECTION_REQUIRE([1.41.4])
 
 GOBJECT_REQUIREMENT="gobject-2.0 >= glib_required_version"
-common_packages="gthread-2.0 gio-2.0 >= glib_required_version mozjs-24"
+common_packages="gthread-2.0 gio-2.0 >= glib_required_version mozjs-31"
 gjs_packages="gobject-introspection-1.0 libffi $common_packages"
 gjs_cairo_packages="cairo cairo-gobject $common_packages"
 gjs_gdbus_packages="$GOBJECT_REQUIREMENT gio-2.0"
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 9f39be2..fe891ae 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -27,6 +27,7 @@
 #include <stdbool.h>
 
 #include <glib-object.h>
+#include <mozilla/Maybe.h>
 
 #include "jsapi-wrapper.h"
 #include "gjs/runtime.h"
diff --git a/gjs/jsapi-wrapper.h b/gjs/jsapi-wrapper.h
index a282b2d..b93912f 100644
--- a/gjs/jsapi-wrapper.h
+++ b/gjs/jsapi-wrapper.h
@@ -29,6 +29,6 @@
 #pragma GCC system_header
 #endif
 #include <jsapi.h>
-#include <jsdbgapi.h> // Needed by some bits
+#include <js/OldDebugAPI.h>
 
 #endif  /* GJS_JSAPI_WRAPPER_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]