]> granicus.if.org Git - strace/commitdiff
sys/reg apparently only exists on i386 and m68k, so fix the test in
authorWichert Akkerman <wichert@deephackmode.org>
Wed, 17 Mar 1999 00:42:25 +0000 (00:42 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Wed, 17 Mar 1999 00:42:25 +0000 (00:42 +0000)
a couple of files

process.c
signal.c
syscall.c
util.c

index a7b62f4fd0f7f58c1bc849f3f9d4cad55a64cd62..1eb279229be0dd1f5abf59a10aadd09e0a75c331 100644 (file)
--- a/process.c
+++ b/process.c
@@ -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
index baa39477ea3a2ea77ee9787df43406589f6dfed7..5860bf9c38560e0651c57c94d14cf466a088db8d 100644 (file)
--- a/signal.c
+++ b/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
 
index 91bdd8bc7745da56273005d12227a1368c48eb62..3d9ee95bc005c2d0ff647a38111a351477d6ca4d 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -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
 
diff --git a/util.c b/util.c
index 5611f8226f866ee5c970fd9a53f2709ce1818892..93b3c41e76bea87ab1ed0148f5df2a5aaba687e5 100644 (file)
--- a/util.c
+++ b/util.c
@@ -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