Brad Bishop | c1d3433 | 2019-09-09 14:56:00 -0400 | [diff] [blame^] | 1 | kernel headers have restructured mips syscall generation in kernel |
| 2 | in recent versions, however, ltrace still has logic to define the |
| 3 | syscall numbers based on old logic, this patch includes the legacy |
| 4 | UAPI headers to get these defines |
| 5 | |
| 6 | Fixes errors e.g. |
| 7 | ../../../../git/sysdeps/linux-gnu/mips/trace.c:138:29: error: '__NR_O32_Linux' undeclared (first use in this function) |
| 8 | const int syscallbase[] = {__NR_O32_Linux, __NR_N32_Linux, |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- a/sysdeps/linux-gnu/mips/trace.c |
| 13 | +++ b/sysdeps/linux-gnu/mips/trace.c |
| 14 | @@ -34,6 +34,16 @@ |
| 15 | #include <assert.h> |
| 16 | #include <asm/unistd.h> |
| 17 | |
| 18 | +#ifndef __NR_O32_Linux |
| 19 | +#include <asm/unistd_nr_o32.h> |
| 20 | +#endif |
| 21 | +#ifndef __NR_N32_Linux |
| 22 | +#include <asm/unistd_nr_n64.h> |
| 23 | +#endif |
| 24 | +#ifndef __NR_N64_Linux |
| 25 | +#include <asm/unistd_nr_n32.h> |
| 26 | +#endif |
| 27 | + |
| 28 | #include "backend.h" |
| 29 | #include "common.h" |
| 30 | #include "debug.h" |