aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/stat.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-17 09:39:36 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-17 09:39:36 +0200
commit1a7dbb7e0122b85b44db53e5039327d8a3fe887a (patch)
tree3b592f93e0eb161edfb0b1ec3b1ff9da67414cff /main/xulrunner/stat.patch
parent2b77aeb2ad71d9e8693124ace48735998b39f75a (diff)
downloadaports-1a7dbb7e0122b85b44db53e5039327d8a3fe887a.tar.bz2
aports-1a7dbb7e0122b85b44db53e5039327d8a3fe887a.tar.xz
main/xulrunner: fix JS FFI to find the correct libc and stat/lstat/fstat
Fixes issues with addressbar not working in firefox-20 and probably also the firefox-19 issues: https://bugzilla.mozilla.org/show_bug.cgi?id=843564 https://bugzilla.mozilla.org/show_bug.cgi?id=843513
Diffstat (limited to 'main/xulrunner/stat.patch')
-rw-r--r--main/xulrunner/stat.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/xulrunner/stat.patch b/main/xulrunner/stat.patch
new file mode 100644
index 0000000000..d92588e159
--- /dev/null
+++ b/main/xulrunner/stat.patch
@@ -0,0 +1,25 @@
+--- ./dom/system/OSFileConstants.cpp.orig 2013-04-17 06:17:29.798371189 +0000
++++ ./dom/system/OSFileConstants.cpp 2013-04-17 06:30:30.032285977 +0000
+@@ -509,6 +509,11 @@
+ INT_CONSTANT(_STAT_VER),
+ #endif // defined(_STAT_VER)
+
++ // glibc's stat/lstat/fstat are macros while uclibc's are not
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
++ { "OSFILE_STAT_MACROS", INT_TO_JSVAL(1) },
++#endif // defined(stat)
++
+ PROP_END
+ };
+
+--- ./toolkit/components/osfile/osfile_unix_back.jsm.orig 2013-04-16 19:24:04.196535897 +0000
++++ ./toolkit/components/osfile/osfile_unix_back.jsm 2013-04-17 06:49:08.869379007 +0000
+@@ -502,7 +502,7 @@
+ /*path*/ Types.fd,
+ /*buf*/ Types.stat.out_ptr
+ );
+- } else if (OS.Constants.libc._STAT_VER != undefined) {
++ } else if (OS.Constants.libc.OSFILE_STAT_MACROS != undefined) {
+ const ver = OS.Constants.libc._STAT_VER;
+ // Linux, all widths
+ let xstat =