summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-17 21:28:00 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-17 21:28:00 +0000
commitfd16f36d1986fbbb9f802b3649e543f3f41227ea (patch)
tree2803a060b1b57f381a13a4d2e9c7f074ab2dfd93
parentde1d3dd30e8975dd6053c925dba1181fb93773d2 (diff)
downloadgcc-fd16f36d1986fbbb9f802b3649e543f3f41227ea.tar.gz
Include <cerrno> in src/c++11/random.cc
2015-09-17 Gerald Pfeifer <gerald@pfeifer.com> * src/c++11/random.cc: Include <cerrno>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227887 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/src/c++11/random.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b11698426b4..8de683ecd86 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-17 Gerald Pfeifer <gerald@pfeifer.com>
+
+ * src/c++11/random.cc: Include <cerrno>.
+
2015-09-17 François Dumont <fdumont@gcc.gnu.org>
* include/debug/formatter.h
diff --git a/libstdc++-v3/src/c++11/random.cc b/libstdc++-v3/src/c++11/random.cc
index f1d6125128a..df3572a1617 100644
--- a/libstdc++-v3/src/c++11/random.cc
+++ b/libstdc++-v3/src/c++11/random.cc
@@ -31,6 +31,7 @@
# include <cpuid.h>
#endif
+#include <cerrno>
#include <cstdio>
#ifdef _GLIBCXX_HAVE_UNISTD_H