re PR bootstrap/4068 ([linux-x86] bootstrapping on glibc2.0 systems)
authorJoseph Myers <jsm@polyomino.org.uk>
Thu, 19 Jun 2003 04:46:29 +0000 (21:46 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 19 Jun 2003 04:46:29 +0000 (21:46 -0700)
PR bootstrap/4068
* config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.

From-SVN: r68177

gcc/ChangeLog
gcc/config/i386/linux.h

index 0d2114247e419a977a4f7f9527457dbbfbba942b..37386dc075fec7f7ac75479aa0bb35aa85101d98 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       PR bootstrap/4068
+       * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
+
 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
index df66a58447bf4bf778f952e4a55e5e7bd06432de..ae6e8d045c60860d9e651e0a0a270c71de724d2a 100644 (file)
@@ -234,7 +234,7 @@ Boston, MA 02111-1307, USA.  */
    signal-turned-exceptions for them.  There's also no configure-run for
    the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H.  Using the
    target libc1 macro should be enough.  */
-#ifndef USE_GNULIBC_1
+#if !(defined (USE_GNULIBC_1) || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0))
 #include <signal.h>
 #include <sys/ucontext.h>