You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/06 18:40:15 UTC
[33/50] [abbrv] couch commit: updated refs/heads/import-rcouch to
e2dbc79
fix build on macosx
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/856f4e01
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/856f4e01
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/856f4e01
Branch: refs/heads/import-rcouch
Commit: 856f4e01779ce1905a0f29a385fa19d16c55f3a9
Parents: 4937fad
Author: benoitc <bc...@gmail.com>
Authored: Tue Jan 7 22:42:39 2014 +0100
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Thu Feb 6 11:38:29 2014 -0600
----------------------------------------------------------------------
c_src/couch_js/http.c | 2 +-
c_src/couch_js/main.c | 2 +-
c_src/couch_js/utf8.c | 2 +-
c_src/couch_js/util.c | 2 +-
c_src/couch_js/util.h | 2 +-
rebar.config.script | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/856f4e01/c_src/couch_js/http.c
----------------------------------------------------------------------
diff --git a/c_src/couch_js/http.c b/c_src/couch_js/http.c
index 3baa59d..da29b5f 100644
--- a/c_src/couch_js/http.c
+++ b/c_src/couch_js/http.c
@@ -16,7 +16,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <jsapi.h>
+#include <js/jsapi.h>
#include "utf8.h"
#include "util.h"
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/856f4e01/c_src/couch_js/main.c
----------------------------------------------------------------------
diff --git a/c_src/couch_js/main.c b/c_src/couch_js/main.c
index a0fc143..d4f4ef0 100644
--- a/c_src/couch_js/main.c
+++ b/c_src/couch_js/main.c
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <string.h>
-#include <jsapi.h>
+#include <js/jsapi.h>
#include "http.h"
#include "utf8.h"
#include "util.h"
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/856f4e01/c_src/couch_js/utf8.c
----------------------------------------------------------------------
diff --git a/c_src/couch_js/utf8.c b/c_src/couch_js/utf8.c
index 2b3735a..75a4315 100644
--- a/c_src/couch_js/utf8.c
+++ b/c_src/couch_js/utf8.c
@@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations under
// the License.
-#include <jsapi.h>
+#include <js/jsapi.h>
static int
enc_char(uint8 *utf8Buffer, uint32 ucs4Char)
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/856f4e01/c_src/couch_js/util.c
----------------------------------------------------------------------
diff --git a/c_src/couch_js/util.c b/c_src/couch_js/util.c
index 9b46ceb..ef984d1 100644
--- a/c_src/couch_js/util.c
+++ b/c_src/couch_js/util.c
@@ -13,7 +13,7 @@
#include <stdlib.h>
#include <string.h>
-#include <jsapi.h>
+#include <js/jsapi.h>
#include "help.h"
#include "util.h"
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/856f4e01/c_src/couch_js/util.h
----------------------------------------------------------------------
diff --git a/c_src/couch_js/util.h b/c_src/couch_js/util.h
index 65a2a06..a1e2b6c 100644
--- a/c_src/couch_js/util.h
+++ b/c_src/couch_js/util.h
@@ -13,7 +13,7 @@
#ifndef COUCHJS_UTIL_H
#define COUCHJS_UTIL_H
-#include <jsapi.h>
+#include <js/jsapi.h>
typedef struct {
int use_http;
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/856f4e01/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index ca79b39..ab4501d 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -69,7 +69,7 @@ GetFlag = fun(Name, Default) ->
JSLIBS = GetFlag("JS_LIBS", "-lmozjs185"),
-JSCFLAGS = GetFlag("JS_CFLAGS", "-I/usr/include/js"),
+JSCFLAGS = GetFlag("JS_CFLAGS", "$CFLAGS"),
{CFLAGS, LDFLAGS} = case os:type() of
{unix, darwin} ->