]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Include <sys/user.h>.
authorUlrich Drepper <drepper@redhat.com>
Sat, 19 Feb 2000 08:10:12 +0000 (08:10 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 19 Feb 2000 08:10:12 +0000 (08:10 +0000)
Make fpregset_t definition compatible with definition in 2.1.2 and before.
(struct ucontext): Use fpregset_t.

sysdeps/unix/sysv/linux/i386/sys/ucontext.h

index 44a5b12cd49f2dd6735a343e20e42299c51103fa..a90078ce9c8a4d458a82fa3784db72447737aef1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    included in <signal.h>.  */
 #include <bits/sigcontext.h>
 
+/* We also need the definition of the userlevel data representation
+   for the register contexts.  */
+#include <sys/user.h>
+
 
 /* Type for general register.  */
 typedef int greg_t;
@@ -82,7 +86,7 @@ enum
 #endif
 
 /* Structure to describe FPU registers.  */
-typedef struct _fpstate *fpregset_t;
+typedef struct user_fpregs_struct fpregset_t;
 
 /* Context to describe whole processor state.  */
 typedef struct
@@ -103,7 +107,7 @@ typedef struct ucontext
     stack_t uc_stack;
     mcontext_t uc_mcontext;
     __sigset_t uc_sigmask;
-    struct _fpstate __fpregs_mem;
+    fpregset_t __fpregs_mem;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */