aports/community/firefox/getchar.patch
2015-09-30 13:03:16 +02:00

15 lines
470 B
Diff

--- ./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