aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox-esr/stat.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-31 09:32:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-31 12:48:15 +0000
commit4c9e27a54c4f400e46645cb768b7743d2e29f9b1 (patch)
treeefafab3e4b167b8a11a8991d468c1655d25403c4 /community/firefox-esr/stat.patch
parenta94573fafecc06cfd799ff83b4b3da40e29d469d (diff)
downloadaports-4c9e27a54c4f400e46645cb768b7743d2e29f9b1.tar.bz2
aports-4c9e27a54c4f400e46645cb768b7743d2e29f9b1.tar.xz
community/firefox-esr: renamed from firefox
Diffstat (limited to 'community/firefox-esr/stat.patch')
-rw-r--r--community/firefox-esr/stat.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/firefox-esr/stat.patch b/community/firefox-esr/stat.patch
new file mode 100644
index 0000000000..ed7dc007e2
--- /dev/null
+++ b/community/firefox-esr/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/modules/osfile_unix_back.jsm.orig 2014-04-03 13:08:26.686409787 +0000
++++ ./toolkit/components/osfile/modules/osfile_unix_back.jsm 2014-04-03 13:34:14.101716259 +0000
+@@ -512,7 +512,7 @@
+ /*path*/ Type.fd,
+ /*buf*/ Type.stat.out_ptr
+ );
+- } else if (Const._STAT_VER != undefined) {
++ } else if (Const.OSFILE_STAT_MACROS != undefined) {
+ const ver = Const._STAT_VER;
+ let xstat_name, lxstat_name, fxstat_name;
+ if (OS.Constants.Sys.Name == "SunOS") {