diff options
author | bjs <bjs@pkgsrc.org> | 2008-04-04 01:56:16 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-04-04 01:56:16 +0000 |
commit | 668f47dd47eed4314b9743008038e50093f0502f (patch) | |
tree | df6a94c20de132be4a77b4796b0606a9c438c17e /lang/ossp-js/patches | |
parent | 74dd15f3287bf0002cad594a31b65e661f13561e (diff) | |
download | pkgsrc-668f47dd47eed4314b9743008038e50093f0502f.tar.gz |
Fix some integer witdth/type-casting issue which I saw on NetBSD/amd64
today, eliminating most warnings.
Bump rev.
Diffstat (limited to 'lang/ossp-js/patches')
-rw-r--r-- | lang/ossp-js/patches/patch-af | 22 | ||||
-rw-r--r-- | lang/ossp-js/patches/patch-ag | 13 | ||||
-rw-r--r-- | lang/ossp-js/patches/patch-ah | 20 | ||||
-rw-r--r-- | lang/ossp-js/patches/patch-ai | 19 |
4 files changed, 74 insertions, 0 deletions
diff --git a/lang/ossp-js/patches/patch-af b/lang/ossp-js/patches/patch-af new file mode 100644 index 00000000000..8cc790975d6 --- /dev/null +++ b/lang/ossp-js/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD: patch-af,v 1.1 2008/04/04 01:56:16 bjs Exp $ + +--- src/jsapi.c.orig 2007-02-08 04:39:05.000000000 -0500 ++++ src/jsapi.c +@@ -4078,7 +4078,7 @@ JS_EvaluateScript(JSContext *cx, JSObjec + JSBool ok; + + CHECK_REQUEST(cx); +- chars = js_InflateString(cx, bytes, &length); ++ chars = js_InflateString(cx, bytes, (size_t *)&length); + if (!chars) + return JS_FALSE; + ok = JS_EvaluateUCScript(cx, obj, chars, length, filename, lineno, rval); +@@ -4097,7 +4097,7 @@ JS_EvaluateScriptForPrincipals(JSContext + JSBool ok; + + CHECK_REQUEST(cx); +- chars = js_InflateString(cx, bytes, &length); ++ chars = js_InflateString(cx, bytes, (size_t *)&length); + if (!chars) + return JS_FALSE; + ok = JS_EvaluateUCScriptForPrincipals(cx, obj, principals, chars, length, diff --git a/lang/ossp-js/patches/patch-ag b/lang/ossp-js/patches/patch-ag new file mode 100644 index 00000000000..b394bb4b24a --- /dev/null +++ b/lang/ossp-js/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1 2008/04/04 01:56:16 bjs Exp $ + +--- src/jsdbgapi.c.orig 2006-04-04 10:09:45.000000000 -0400 ++++ src/jsdbgapi.c +@@ -940,7 +940,7 @@ JS_EvaluateInStackFrame(JSContext *cx, J + jschar *chars; + JSBool ok; + +- chars = js_InflateString(cx, bytes, &length); ++ chars = js_InflateString(cx, bytes, (size_t *)&length); + if (!chars) + return JS_FALSE; + ok = JS_EvaluateUCInStackFrame(cx, fp, chars, length, filename, lineno, diff --git a/lang/ossp-js/patches/patch-ah b/lang/ossp-js/patches/patch-ah new file mode 100644 index 00000000000..ca544a63fdb --- /dev/null +++ b/lang/ossp-js/patches/patch-ah @@ -0,0 +1,20 @@ +$NetBSD: patch-ah,v 1.1 2008/04/04 01:56:16 bjs Exp $ + +--- src/jsosdep.h.orig 2005-07-07 18:35:39.000000000 -0400 ++++ src/jsosdep.h +@@ -89,6 +89,15 @@ + #elif defined(FREEBSD) + #define JS_HAVE_LONG_LONG + ++#elif defined(__NetBSD__) ++#define JS_HAVE_LONG_LONG ++ ++#elif defined(__OpenBSD__) ++#define JS_HAVE_LONG_LONG ++ ++#elif defined(__DragonFly__) ++#define JS_HAVE_LONG_LONG ++ + #elif defined(SUNOS4) + #undef JS_HAVE_LONG_LONG + diff --git a/lang/ossp-js/patches/patch-ai b/lang/ossp-js/patches/patch-ai new file mode 100644 index 00000000000..b0929b3ccdd --- /dev/null +++ b/lang/ossp-js/patches/patch-ai @@ -0,0 +1,19 @@ +$NetBSD: patch-ai,v 1.1 2008/04/04 01:56:16 bjs Exp $ + +--- src/jstypes.h.orig 2006-07-24 15:21:49.000000000 -0400 ++++ src/jstypes.h +@@ -387,8 +387,14 @@ typedef JSUint8 JSPackedBool; + /* + ** A JSWord is an integer that is the same size as a void* + */ ++#ifdef HAVE_INTTYPES_H ++#include <stdint.h> ++typedef intptr_t JSWord; ++typedef uintptr_t JSUword; ++#else + typedef long JSWord; + typedef unsigned long JSUword; ++#endif + + #include "jsotypes.h" + |