summarylogtreecommitdiffstats
path: root/pointer-cast.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pointer-cast.patch')
-rw-r--r--pointer-cast.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/pointer-cast.patch b/pointer-cast.patch
new file mode 100644
index 000000000000..17afbf81eb6b
--- /dev/null
+++ b/pointer-cast.patch
@@ -0,0 +1,14 @@
+diff --git a/libstdc++-v3/src/c++11/random.cc b/libstdc++-v3/src/c++11/random.cc
+index d60a00b..57128e7 100644
+--- a/libstdc++-v3/src/c++11/random.cc
++++ b/libstdc++-v3/src/c++11/random.cc
+@@ -136,7 +136,8 @@ namespace std _GLIBCXX_VISIBILITY(default)
+ #ifdef _GLIBCXX_HAVE_UNISTD_H
+ do
+ {
+- const int e = read(fileno(static_cast<FILE*>(_M_file)), p, n);
++ const int e = read(fileno(static_cast<FILE*>(_M_file)), static_cast<char*>(p),
++ n);
+ if (e > 0)
+ {
+ n -= e;