From: Nate Sammons Date: Sat, 3 Jul 1999 18:53:05 +0000 (+0000) Subject: system.c was using __NR_* style syscall number defines, which don't X-Git-Tag: v4.5.18~1188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d5860c8d807440c28e838fa82f2ad7e83bade17;p=strace system.c was using __NR_* style syscall number defines, which don't get defined now. Use SYS_* instead, and also make the previously dead include hack work. sys_personality didn't work right before. --- diff --git a/system.c b/system.c index e386ba55..b5dca53c 100644 --- a/system.c +++ b/system.c @@ -45,19 +45,24 @@ #include #include -#ifdef __NR_personality +#include + +#ifdef SYS_personality /* Workaround for kernel namespace pollution. */ #define _LINUX_PTRACE_H +/* Yuck yuck yuck. We can't include linux/ptrace.h, but personality.h + makes a declaration with struct pt_regs, which is defined there. */ +struct pt_regs; #define sys_personality kernel_sys_personality #include #undef sys_personality -#endif /* __NR_personality */ +#endif /* SYS_personality */ -#ifdef __NR_capget +#ifdef SYS_capget #include #endif -#ifdef __NR_cacheflush +#ifdef SYS_cacheflush #include #endif @@ -1201,7 +1206,7 @@ struct tcb *tcp; #endif /* SVR4 */ -#ifdef __NR_capget +#ifdef SYS_capget int sys_capget(tcp) struct tcb *tcp;