Browse Source

mips: add regdef.h glibc compatibility header

Waldemar Brodkorb 8 years ago
parent
commit
ff58e44fc3
2 changed files with 26 additions and 2 deletions
  1. 1 2
      libc/sysdeps/linux/mips/Makefile.arch
  2. 25 0
      libc/sysdeps/linux/mips/regdef.h

+ 1 - 2
libc/sysdeps/linux/mips/Makefile.arch

@@ -20,5 +20,4 @@ SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.S setcontext.S getcontext.S \
 
 ASFLAGS-syscall_error.S += -D_LIBC_REENTRANT
 
-ARCH_HEADERS := sgidefs.h
-# regdef.h
+ARCH_HEADERS := sgidefs.h regdef.h

+ 25 - 0
libc/sysdeps/linux/mips/regdef.h

@@ -0,0 +1,25 @@
+/* Copyright (C) 1994-2016 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ralf Baechle <ralf@gnu.org>.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library.  If not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#ifndef _REGDEF_H
+#define _REGDEF_H
+
+#include <sys/regdef.h>
+#include <sys/fpregdef.h>
+
+#endif /* _REGDEF_H */