sys/reg apparently only exists on i386 and m68k, so fix the test in

a couple of files
This commit is contained in:
Wichert Akkerman 1999-03-17 00:42:25 +00:00
parent 5daa028ca3
commit 9047076564
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

2
util.c
View File

@ -39,7 +39,7 @@
#include <a.out.h>
#include <link.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
#endif