OSDN Git Service

sys/procfs.h defines a typedef for floating point registers that references an
authorBernd Schmidt <bernds_cb1@t-online.de>
Thu, 22 Nov 2007 17:22:13 +0000 (17:22 -0000)
committerBernd Schmidt <bernds_cb1@t-online.de>
Thu, 22 Nov 2007 17:22:13 +0000 (17:22 -0000)
undefined structure.  This typedef is used in linuxthreads.old-db, causing a
compilation failure.  Fixed by defining an empty structure for it - we don't
have fp regs anyway.

libc/sysdeps/linux/bfin/sys/procfs.h

index a656d86..45a65f3 100644 (file)
@@ -45,8 +45,8 @@ typedef unsigned long elf_greg_t;
 #define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
-/* Register set for the floating-point registers.  */
-typedef struct user_bfinfp_struct elf_fpregset_t;
+/* Register set for the floating-point registers.  Empty on the Blackfin.  */
+typedef struct { } elf_fpregset_t;
 
 /* Signal info.  */
 struct elf_siginfo