diff options
author | Wichert Akkerman <wichert@deephackmode.org> | 1999-07-13 22:20:16 +0000 |
---|---|---|
committer | Wichert Akkerman <wichert@deephackmode.org> | 1999-07-13 22:20:16 +0000 |
commit | b046b38593b6bca6b6c49ac1fcc09dd5cd4c94b2 (patch) | |
tree | f6e79d405343cbfcfc474714710a81184ff3330b /syscall.c | |
parent | 36915a19e4806339b76209b20fdbd1091c126115 (diff) | |
download | strace-b046b38593b6bca6b6c49ac1fcc09dd5cd4c94b2.tar.gz strace-b046b38593b6bca6b6c49ac1fcc09dd5cd4c94b2.tar.bz2 strace-b046b38593b6bca6b6c49ac1fcc09dd5cd4c94b2.tar.xz |
Update sys/reg.h usage in syscall.c as well
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -38,14 +38,15 @@ #include <sys/syscall.h> #include <sys/param.h> -#if __GLIBC__ == 2 && ((defined(I386) && __GLIBC_MINOR__ >= 0) || (defined(M68K) && __GLIBC_MINOR__ >= 1)) -# include <sys/reg.h> -#else -# if defined LINUX -# include <linux/ptrace.h> -# endif /* LINUX */ +#ifdef HAVE_SYS_REG_H +#include <sys/reg.h> +# define PTRACE_PEEKUSR PTRACE_PEEKUSER #endif +#if defined(linux) && !defined(__GLIBC__) +#include <linux/ptrace.h> +#endif + #ifndef SYS_ERRLIST_DECLARED extern int sys_nerr; extern char *sys_errlist[]; |