Changed PTRACE_PEEKUSER to PTRACE_PEEKUSR and PTRACE_POKEUSER to

PTRACE_POKEUSR for libc5(?) compile.
This commit is contained in:
Peter Hunnisett 2000-03-24 19:45:11 +00:00 committed by Alexandre Julliard
parent 2e34030a02
commit de1ff66d81
1 changed files with 12 additions and 3 deletions

View File

@ -25,13 +25,22 @@
#include "thread.h"
#include "request.h"
#ifndef PTRACE_PEEKUSER
#define PTRACE_PEEKUSER PT_READ_U
# ifdef PTRACE_PEEKUSR /* libc5 uses USR not USER */
# define PTRACE_PEEKUSER PTRACE_PEEKUSR
# else
# define PTRACE_PEEKUSER PT_READ_U
# endif
#endif
#ifndef PTRACE_POKEUSER
#define PTRACE_POKEUSER PT_WRITE_U
# ifdef PTRACE_POKEUSR /* libc5 uses USR not USER */
# define PTRACE_POKEUSER PTRACE_POKEUSR
# else
# define PTRACE_POKEUSER PT_WRITE_U
# endif
#endif
#ifndef PTRACE_GETREGS
#define PTRACE_GETREGS PT_GETREGS
#endif