aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox-esr/getchar.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/firefox-esr/getchar.patch')
-rw-r--r--community/firefox-esr/getchar.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/firefox-esr/getchar.patch b/community/firefox-esr/getchar.patch
new file mode 100644
index 0000000000..981206b971
--- /dev/null
+++ b/community/firefox-esr/getchar.patch
@@ -0,0 +1,14 @@
+--- ./media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp.orig
++++ ./media/webrtc/trunk/webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp
+@@ -21,6 +21,11 @@
+ #include "constants.hpp"
+ #include <cstring>
+
++/* prevent the getchar macro from stdio to take preference over the local var */
++#if defined(__UCLIBC__)
++#undef getchar
++#endif
++
+ namespace boost {
+ namespace detail {
+ //This only works on unsigned data types