sys/reg apparently only exists on i386 and m68k, so fix the test in
a couple of files
This commit is contained in:
parent
5daa028ca3
commit
9047076564
@ -44,7 +44,7 @@
|
||||
#include <machine/reg.h>
|
||||
#endif /* SUNOS4 */
|
||||
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K))
|
||||
# include <sys/reg.h>
|
||||
# define PTRACE_PEEKUSR PTRACE_PEEKUSER
|
||||
# define PTRACE_POKEUSR PTRACE_POKEUSER
|
||||
|
2
signal.c
2
signal.c
@ -39,7 +39,7 @@
|
||||
#include <signal.h>
|
||||
#include <sys/user.h>
|
||||
#include <fcntl.h>
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K))
|
||||
# include <sys/reg.h>
|
||||
#endif
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include <sys/user.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/param.h>
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
|
||||
#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K))
|
||||
# include <sys/reg.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user