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

This commit is contained in:
Alexandre Julliard 2013-02-13 16:26:17 +01:00
parent 76b8612c3e
commit fc7e81be15
1 changed files with 2 additions and 4 deletions

View File

@ -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))