Commit fc7e81be authored by Alexandre Julliard's avatar Alexandre Julliard

server: Don't support debug registers in ptrace if sys/user.h is missing.

parent 76b8612c
......@@ -528,11 +528,9 @@ void get_selector_entry( struct thread *thread, int entry, unsigned int *base,
}
#if defined(linux) && (defined(__i386__) || defined(__x86_64__))
#if defined(linux) && defined(HAVE_SYS_USER_H) && (defined(__i386__) || defined(__x86_64__))
#ifdef HAVE_SYS_USER_H
# include <sys/user.h>
#endif
#include <sys/user.h>
/* debug register offset in struct user */
#define DR_OFFSET(dr) ((((struct user *)0)->u_debugreg) + (dr))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment