0003-use-asm-sgidefs.h.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From b286989e94e09c992462771cdbd3dc684f660b4f 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. [Vincent:
  12. Taken from: https://sourceware.org/bugzilla/show_bug.cgi?id=21070]
  13. Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
  14. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  15. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  16. ---
  17. gdb/mips-linux-nat.c | 2 +-
  18. 1 file changed, 1 insertion(+), 1 deletion(-)
  19. diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
  20. index 21b1f583b92..de525ae6b01 100644
  21. --- a/gdb/mips-linux-nat.c
  22. +++ b/gdb/mips-linux-nat.c
  23. @@ -31,7 +31,7 @@
  24. #include "gdb_proc_service.h"
  25. #include "gregset.h"
  26. -#include <sgidefs.h>
  27. +#include <asm/sgidefs.h>
  28. #include "nat/gdb_ptrace.h"
  29. #include <asm/ptrace.h>
  30. #include "inf-ptrace.h"
  31. --
  32. 2.14.4