浏览代码

sync with glibc

Mike Frysinger 19 年之前
父节点
当前提交
df53724ea5
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      libc/sysdeps/linux/x86_64/bits/sigcontext.h

+ 8 - 0
libc/sysdeps/linux/x86_64/bits/sigcontext.h

@@ -70,6 +70,14 @@ struct _fpstate
   __uint32_t		padding[56];
   __uint32_t		padding[56];
 };
 };
 
 
+#ifndef sigcontext_struct
+/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
+   we need sigcontext.  Some packages have come to rely on
+   sigcontext_struct being defined on 32-bit x86, so define this for
+   their benefit.  */
+# define sigcontext_struct sigcontext
+#endif
+
 struct sigcontext
 struct sigcontext
 {
 {
   unsigned short gs, __gsh;
   unsigned short gs, __gsh;