0004-use-asm-sgidefs.h.patch 987 B

123456789101112131415161718192021222324252627282930313233
  1. From 693e01865c28c0a48e60173389ef467f46244c21 Mon Sep 17 00:00:00 2001
  2. From: Andre McCurdy <amccurdy@gmail.com>
  3. Date: Sat, 30 Apr 2016 15:29:06 -0700
  4. Subject: [PATCH] use <asm/sgidefs.h>
  5. Build fix for MIPS with musl libc
  6. The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
  7. but not by musl. Regardless of the libc, the kernel headers provide
  8. <asm/sgidefs.h> which provides the same definitions, so use that
  9. instead.
  10. Upstream-Status: Pending
  11. Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
  12. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  13. ---
  14. gdb/mips-linux-nat.c | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
  17. index 5e68538a3ba..5b1c209abd8 100644
  18. --- a/gdb/mips-linux-nat.c
  19. +++ b/gdb/mips-linux-nat.c
  20. @@ -31,7 +31,7 @@
  21. #include "gdb_proc_service.h"
  22. #include "gregset.h"
  23. -#include <sgidefs.h>
  24. +#include <asm/sgidefs.h>
  25. #include "nat/gdb_ptrace.h"
  26. #include <asm/ptrace.h>
  27. #include "inf-ptrace.h"