From cc46dff67f02fc977315809f3858b7aefc360705 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 6 Oct 2000 11:53:32 +0000 Subject: [PATCH] Work around a bug by adding struct tags. gcc-2.95 apparently gets the check in the [basic.link] section of the C++ standard wrong. gcc-2.7.2.3 apparently doesn't do the check, so the bug doesn't affect RELENG_3. PR: 16170, 21427 Submitted by: Max Khon (i386 version) Discussed with: jdp --- sys/alpha/include/setjmp.h | 4 ++-- sys/amd64/include/setjmp.h | 4 ++-- sys/i386/include/setjmp.h | 4 ++-- sys/ia64/include/setjmp.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/alpha/include/setjmp.h b/sys/alpha/include/setjmp.h index 5fcfe2ab55f..3cc52dc626e 100644 --- a/sys/alpha/include/setjmp.h +++ b/sys/alpha/include/setjmp.h @@ -40,7 +40,7 @@ * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE -typedef struct { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; +typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ -typedef struct { long _jb[_JBLEN + 1]; } jmp_buf[1]; +typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1]; diff --git a/sys/amd64/include/setjmp.h b/sys/amd64/include/setjmp.h index 3097df77f0a..a311d837c96 100644 --- a/sys/amd64/include/setjmp.h +++ b/sys/amd64/include/setjmp.h @@ -40,7 +40,7 @@ * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE -typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; +typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ -typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; +typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1]; diff --git a/sys/i386/include/setjmp.h b/sys/i386/include/setjmp.h index 3097df77f0a..a311d837c96 100644 --- a/sys/i386/include/setjmp.h +++ b/sys/i386/include/setjmp.h @@ -40,7 +40,7 @@ * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE -typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; +typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ -typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; +typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1]; diff --git a/sys/ia64/include/setjmp.h b/sys/ia64/include/setjmp.h index 5fcfe2ab55f..3cc52dc626e 100644 --- a/sys/ia64/include/setjmp.h +++ b/sys/ia64/include/setjmp.h @@ -40,7 +40,7 @@ * internally to avoid some run-time errors for mismatches. */ #ifndef _ANSI_SOURCE -typedef struct { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; +typedef struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1]; #endif /* not ANSI */ -typedef struct { long _jb[_JBLEN + 1]; } jmp_buf[1]; +typedef struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];