浏览代码

sys/procfs.h defines a typedef for floating point registers that references an
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.

Bernd Schmidt 18 年之前
父节点
当前提交
1a98c1f87e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libc/sysdeps/linux/bfin/sys/procfs.h

+ 2 - 2
libc/sysdeps/linux/bfin/sys/procfs.h

@@ -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