File gcc33-update-ucontext-type.patch of Package gcc33

diff -Nraub gcc-3.3.3/gcc/config/alpha/linux.h gcc-3.3.3.new/gcc/config/alpha/linux.h
--- gcc-3.3.3/gcc/config/alpha/linux.h	2003-10-01 12:58:40.000000000 -0400
+++ gcc-3.3.3.new/gcc/config/alpha/linux.h	2019-05-10 21:23:02.820304646 -0400
@@ -89,7 +89,7 @@
       {									\
 	struct rt_sigframe {						\
 	  struct siginfo info;						\
-	  struct ucontext uc;						\
+	  ucontext_t uc;						\
 	} *rt_ = (CONTEXT)->cfa;					\
 	sc_ = &rt_->uc.uc_mcontext;					\
       }									\
diff -Nraub gcc-3.3.3/gcc/config/i386/linux.h gcc-3.3.3.new/gcc/config/i386/linux.h
--- gcc-3.3.3/gcc/config/i386/linux.h	2019-05-10 21:21:09.456304646 -0400
+++ gcc-3.3.3.new/gcc/config/i386/linux.h	2019-05-10 21:23:02.824304646 -0400
@@ -260,7 +260,7 @@
 	  siginfo_t *pinfo;					\
 	  void *puc;							\
 	  siginfo_t info;						\
-	  struct ucontext uc;						\
+	  ucontext_t uc;						\
 	} *rt_ = (CONTEXT)->cfa;					\
 	sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext;		\
       }									\
diff -Nraub gcc-3.3.3/gcc/config/i386/linux64.h gcc-3.3.3.new/gcc/config/i386/linux64.h
--- gcc-3.3.3/gcc/config/i386/linux64.h	2019-05-10 21:21:09.456304646 -0400
+++ gcc-3.3.3.new/gcc/config/i386/linux64.h	2019-05-10 21:23:02.824304646 -0400
@@ -112,7 +112,7 @@
     if (*(unsigned char *)(pc_+0) == 0x48				\
 	&& *(unsigned long *)(pc_+1) == 0x050f0000000fc0c7)		\
       {									\
-	struct ucontext *uc_ = (CONTEXT)->cfa;				\
+	ucontext_t *uc_ = (CONTEXT)->cfa;				\
 	sc_ = (struct sigcontext *) &uc_->uc_mcontext;			\
       }									\
     else								\
@@ -182,7 +182,7 @@
 	  siginfo_t *pinfo;					\
 	  void *puc;							\
 	  siginfo_t info;						\
-	  struct ucontext uc;						\
+	  ucontext_t uc;						\
 	} *rt_ = (CONTEXT)->cfa;					\
 	sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext;		\
       }									\
diff -Nraub gcc-3.3.3/gcc/config/rs6000/linux.h gcc-3.3.3.new/gcc/config/rs6000/linux.h
--- gcc-3.3.3/gcc/config/rs6000/linux.h	2019-05-10 21:21:09.456304646 -0400
+++ gcc-3.3.3.new/gcc/config/rs6000/linux.h	2019-05-10 21:23:02.828304646 -0400
@@ -116,7 +116,7 @@
 
 struct kernel_old_ucontext {
   unsigned long     uc_flags;
-  struct ucontext  *uc_link;
+  ucontext_t       *uc_link;
   stack_t           uc_stack;
   struct sigcontext_struct uc_mcontext;
   sigset_t          uc_sigmask;
diff -Nraub gcc-3.3.3/gcc/config/rs6000/linux64.h gcc-3.3.3.new/gcc/config/rs6000/linux64.h
--- gcc-3.3.3/gcc/config/rs6000/linux64.h	2019-05-10 21:21:09.456304646 -0400
+++ gcc-3.3.3.new/gcc/config/rs6000/linux64.h	2019-05-10 21:23:02.832304646 -0400
@@ -599,7 +599,7 @@
 
 struct kernel_old_ucontext {
   unsigned long     uc_flags;
-  struct ucontext  *uc_link;
+  ucontext_t       *uc_link;
   stack_t           uc_stack;
   struct sigcontext_struct uc_mcontext;
   sigset_t          uc_sigmask;
@@ -654,7 +654,7 @@
 	struct rt_sigframe {						\
 	  int tramp[6];							\
 	  siginfo_t *pinfo;					\
-	  struct ucontext *puc;						\
+	  ucontext_t *puc;						\
 	} *rt_ = (struct rt_sigframe *) pc_;				\
 	sc_ = &rt_->puc->uc_mcontext;					\
       }									\
diff -Nraub gcc-3.3.3/libjava/include/x86_64-signal.h gcc-3.3.3.new/libjava/include/x86_64-signal.h
--- gcc-3.3.3/libjava/include/x86_64-signal.h	2019-05-10 21:21:09.228304646 -0400
+++ gcc-3.3.3.new/libjava/include/x86_64-signal.h	2019-05-10 21:23:02.840304646 -0400
@@ -40,7 +40,7 @@
   /* Advance the program counter so that it is after the start of the	\
      instruction:  the x86_64 exception handler expects			\
      the PC to point to the instruction after a call. */		\
-  struct ucontext *_uc = (struct ucontext *)_p;				\
+  ucontext_t *_uc = (ucontext_t *)_p;				\
   volatile struct sigcontext *_sc = (struct sigcontext *) &_uc->uc_mcontext; \
   _sc->rip += 2;							\
 }									\
openSUSE Build Service is sponsored by