diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-09-05 11:43:23 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-09-05 11:43:23 +0000 |
commit | 86f527c072cf7a1119c80f262a3a666f923b6b0f (patch) | |
tree | d0b5e2250e6831990a97542b5ab62bc7c408d0e2 /lang | |
parent | c92d4ce7be40693410b4572097fb18c070dc18ae (diff) | |
download | pkgsrc-86f527c072cf7a1119c80f262a3a666f923b6b0f.tar.gz |
Support illumos endian.h
Diffstat (limited to 'lang')
-rw-r--r-- | lang/spidermonkey17/distinfo | 4 | ||||
-rw-r--r-- | lang/spidermonkey17/patches/patch-js_src_jscpucfg.h | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/lang/spidermonkey17/distinfo b/lang/spidermonkey17/distinfo index 200c652e774..db49d334c9d 100644 --- a/lang/spidermonkey17/distinfo +++ b/lang/spidermonkey17/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2016/08/30 07:45:51 richard Exp $ +$NetBSD: distinfo,v 1.3 2016/09/05 11:43:23 jperkin Exp $ SHA1 (mozjs17.0.0.tar.gz) = 7805174898c34e5d3c3b256117af9944ba825c89 RMD160 (mozjs17.0.0.tar.gz) = 2fa3a891da2a7a09019f67c1555c03bcdc51e6c5 @@ -10,7 +10,7 @@ SHA1 (patch-bd) = c8ed2110c8b699d6880723dccf62e6976edfa65e SHA1 (patch-bf) = 7d18ec3cad441174a71770e7fa22b1cd2029d55b SHA1 (patch-js_src_config_milestone.pl) = 84dbc588e82ba1a6bcc901abe9b77ba316acac15 SHA1 (patch-js_src_config_system-headers) = a9c5bc2d2c822eb3bd5e8f4ba43407f89b57c009 -SHA1 (patch-js_src_jscpucfg.h) = afce65ca5964fb732d96cf22902f89cd02aedf0d +SHA1 (patch-js_src_jscpucfg.h) = a65222bcf99e91cd00d6ad40d6fcedd0c3d67ec9 SHA1 (patch-js_src_jsgc.cpp) = 0e617094a4b7d87cdf801d9bc4ac1f52d909a12a SHA1 (patch-js_src_jsinterp.cpp) = bee8bdde7dd951dbfbe5b049eb502f7412fbf8e6 SHA1 (patch-js_src_jsmath.cpp) = 04b0081e5abc1de3df5bdfc78db3971fe77da3d4 diff --git a/lang/spidermonkey17/patches/patch-js_src_jscpucfg.h b/lang/spidermonkey17/patches/patch-js_src_jscpucfg.h index 78a425748bd..f1ad4154d6c 100644 --- a/lang/spidermonkey17/patches/patch-js_src_jscpucfg.h +++ b/lang/spidermonkey17/patches/patch-js_src_jscpucfg.h @@ -1,7 +1,8 @@ -$NetBSD: patch-js_src_jscpucfg.h,v 1.1 2016/05/20 18:45:22 youri Exp $ +$NetBSD: patch-js_src_jscpucfg.h,v 1.2 2016/09/05 11:43:23 jperkin Exp $ +Support alternate endian definitions. ---- js/src/jscpucfg.h.orig 2012-08-24 22:55:40.000000000 +0000 +--- js/src/jscpucfg.h.orig 2013-02-11 22:33:22.000000000 +0000 +++ js/src/jscpucfg.h @@ -44,6 +44,21 @@ # define IS_BIG_ENDIAN 1 @@ -25,3 +26,18 @@ $NetBSD: patch-js_src_jscpucfg.h,v 1.1 2016/05/20 18:45:22 youri Exp $ #elif defined(JS_HAVE_ENDIAN_H) # include <endian.h> +@@ -55,6 +70,14 @@ + # undef IS_LITTLE_ENDIAN + # define IS_BIG_ENDIAN 1 + # endif ++# elif defined(BYTE_ORDER) ++# if BYTE_ORDER == LITTLE_ENDIAN ++# define IS_LITTLE_ENDIAN 1 ++# undef IS_BIG_ENDIAN ++# elif BYTE_ORDER == BIG_ENDIAN ++# undef IS_LITTLE_ENDIAN ++# define IS_BIG_ENDIAN 1 ++# endif + # else /* !defined(__BYTE_ORDER) */ + # error "endian.h does not define __BYTE_ORDER. Cannot determine endianness." + # endif |