From: Wichert Akkerman Date: Wed, 17 Mar 1999 00:42:25 +0000 (+0000) Subject: sys/reg apparently only exists on i386 and m68k, so fix the test in X-Git-Tag: v4.5.18~1235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9047076564d0a097897f165a1311f35f8a2b116b;p=strace sys/reg apparently only exists on i386 and m68k, so fix the test in a couple of files --- diff --git a/process.c b/process.c index a7b62f4f..1eb27922 100644 --- a/process.c +++ b/process.c @@ -44,7 +44,7 @@ #include #endif /* SUNOS4 */ -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K)) # include # define PTRACE_PEEKUSR PTRACE_PEEKUSER # define PTRACE_POKEUSR PTRACE_POKEUSER diff --git a/signal.c b/signal.c index baa39477..5860bf9c 100644 --- a/signal.c +++ b/signal.c @@ -39,7 +39,7 @@ #include #include #include -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K)) # include #endif diff --git a/syscall.c b/syscall.c index 91bdd8bc..3d9ee95b 100644 --- a/syscall.c +++ b/syscall.c @@ -37,7 +37,7 @@ #include #include #include -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K)) # include #endif diff --git a/util.c b/util.c index 5611f822..93b3c41e 100644 --- a/util.c +++ b/util.c @@ -39,7 +39,7 @@ #include #include #endif /* SUNOS4 */ -#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 +#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && (defined(I386) || defined(M68K)) # include # define PTRACE_PEEKUSR PTRACE_PEEKUSER #endif