aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/ChangeLog2
-rw-r--r--libstdc++-v3/libio/libioP.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 0a77130..2e7c344 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,4 @@
-2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
+2000-10-09 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/configopts.html: Edit.
diff --git a/libstdc++-v3/libio/libioP.h b/libstdc++-v3/libio/libioP.h
index 4bbee9c..c2bf2c8 100644
--- a/libstdc++-v3/libio/libioP.h
+++ b/libstdc++-v3/libio/libioP.h
@@ -23,7 +23,12 @@
other reasons why the executable file might be covered by the GNU
General Public License. */
-#include <errno.h>
+#ifdef __cplusplus
+# include <cerrno>
+#else
+# include <errno.h>
+#endif
+
#ifndef __set_errno
# define __set_errno(Val) errno = (Val)
#endif