summaryrefslogtreecommitdiff
path: root/www/firefox-esr/files/patch-bug714312
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2012-08-30 14:54:17 +0000
committerFlorian Smeets <flo@FreeBSD.org>2012-08-30 14:54:17 +0000
commit2f4c3550c50b8b9afa1652eff05e983b4e0d3f51 (patch)
tree2e5e88926978106511a58859840701a45059d65c /www/firefox-esr/files/patch-bug714312
parent- Use more clear and consistent description for OGG (diff)
- update firefox and thunderbird to 15.0
- update firefox-esr, thunderbird-esr, linux-thunderbird and linux-firefox to 10.0.7 - update seamonkey and linux-seamonkey to 2.12 - update nss to 3.13.6 - update bsdipc code (posix_spawn, SysV shared memory) - rename patches to easily track those not (yet) submitted upstream - reduce package size, except for www/libxul[1] - restore default objdir to what it was in 13.0 - fix mail/enigmail after thunderbird build changes - don't accidentally pick up headers from installed ports[3] - add support for PREFIX != LOCALBASE to Makefile.webplugins [4] - document vulnerabilities in vuln.xml - *miscellaneous cleanups and fixups* Obtained from: OpenBSD ports[1] PR: ports/159831, ports/160933, ports/170467[3], ports/170236 [4] Submitted by: avilla [4] In collaboration with: Jan Beich <jbeich@tormail.net> Who did most of the hard work.
Notes
Notes: svn path=/head/; revision=303378
Diffstat (limited to 'www/firefox-esr/files/patch-bug714312')
-rw-r--r--www/firefox-esr/files/patch-bug71431273
1 files changed, 73 insertions, 0 deletions
diff --git a/www/firefox-esr/files/patch-bug714312 b/www/firefox-esr/files/patch-bug714312
new file mode 100644
index 000000000000..114144d18388
--- /dev/null
+++ b/www/firefox-esr/files/patch-bug714312
@@ -0,0 +1,73 @@
+commit c104d9b
+Author: Landry Breuil <landry@openbsd.org>
+Date: Mon Jan 9 17:32:00 2012 -0600
+
+ Bug 714312 - Use <machine/endian.h> to get endianess on BSD systems, fixing the BSD build. r=ted
+
+ --HG--
+ extra : rebase_source : 8b418bdb2d713093d138ffed20bf1630c05f396b
+---
+ js/src/configure.in | 5 +++++
+ js/src/js-config.h.in | 4 ++++
+ js/src/jscpucfg.h | 17 +++++++++++++++++
+ 3 files changed, 26 insertions(+)
+
+diff --git js/src/configure.in js/src/configure.in
+index 164c896..361b29e 100644
+--- js/src/configure.in
++++ js/src/configure.in
+@@ -2934,6 +2934,11 @@ if test "$ac_cv_header_endian_h" = yes;
+ AC_DEFINE(JS_HAVE_ENDIAN_H)
+ fi
+
++AC_CHECK_HEADERS(machine/endian.h)
++if test "$ac_cv_header_machine_endian_h" = yes; then
++ AC_DEFINE(JS_HAVE_MACHINE_ENDIAN_H)
++fi
++
+ AC_CHECK_HEADERS(sys/isa_defs.h)
+ if test "$ac_cv_header_sys_isa_defs_h" = yes; then
+ AC_DEFINE(JS_HAVE_SYS_ISA_DEFS_H)
+diff --git js/src/js-config.h.in js/src/js-config.h.in
+index fb009fa..402262e 100644
+--- js/src/js-config.h.in
++++ js/src/js-config.h.in
+@@ -59,6 +59,10 @@
+ useable. See jscpucfg.h. */
+ #undef JS_HAVE_ENDIAN_H
+
++/* Define to 1 if the <machine/endian.h> header is present and
++ useable. See jscpucfg.h. */
++#undef JS_HAVE_MACHINE_ENDIAN_H
++
+ /* Define to 1 if the <sys/isa_defs.h> header is present and
+ useable. See jscpucfg.h. */
+ #undef JS_HAVE_SYS_ISA_DEFS_H
+diff --git js/src/jscpucfg.h js/src/jscpucfg.h
+index dd32bce..5fd8415 100644
+--- js/src/jscpucfg.h
++++ js/src/jscpucfg.h
+@@ -92,6 +92,23 @@
+ # error "endian.h does not define __BYTE_ORDER. Cannot determine endianness."
+ # endif
+
++/* BSDs */
++#elif defined(JS_HAVE_MACHINE_ENDIAN_H)
++# include <sys/types.h>
++# include <machine/endian.h>
++
++# if 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 "machine/endian.h does not define _BYTE_ORDER. Cannot determine endianness."
++# endif
++
+ #elif defined(JS_HAVE_SYS_ISA_DEFS_H)
+ # include <sys/isa_defs.h>
+