about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--include/errno.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fd1a8a69fd..9b113e5b0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-02-02  Roland McGrath  <roland@redhat.com>
 
+	* include/errno.h [__cplusplus]: Avoid extra header magic for C++.
+
 	* manual/install.texi (Tools for Compilation): Require gcc 3.4,
 	recommend 4.1, advise 4.0 for powerpc64, and note 4.1 required for
 	powerpc, s390{x,} with new long double.
diff --git a/include/errno.h b/include/errno.h
index 9865903b86..fe8bca44c5 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -2,7 +2,7 @@
 
 #include <stdlib/errno.h>
 
-#if defined _ERRNO_H && !defined _ISOMAC
+#if defined _ERRNO_H && !defined _ISOMAC && !defined __cplusplus
 
 # ifdef IS_IN_rtld
 #  include <dl-sysdep.h>