]> granicus.if.org Git - strace/commitdiff
Update sys/reg.h usage in syscall.c as well
authorWichert Akkerman <wichert@deephackmode.org>
Tue, 13 Jul 1999 22:20:16 +0000 (22:20 +0000)
committerWichert Akkerman <wichert@deephackmode.org>
Tue, 13 Jul 1999 22:20:16 +0000 (22:20 +0000)
syscall.c

index 8680a88be67712c2d44eaf077ba69551d1c7f675..ea57544e5e4e3946bdd609243081b02550f8e7c9 100644 (file)
--- a/syscall.c
+++ b/syscall.c
 #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[];