Commit 2a32d576 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

server: Android has struct user in asm/user.h.

parent 8555e77b
......@@ -5949,6 +5949,7 @@ for ac_header in \
arpa/inet.h \
arpa/nameser.h \
asm/types.h \
asm/user.h \
curses.h \
direct.h \
dirent.h \
......
......@@ -409,6 +409,7 @@ AC_CHECK_HEADERS(\
arpa/inet.h \
arpa/nameser.h \
asm/types.h \
asm/user.h \
curses.h \
direct.h \
dirent.h \
......
......@@ -35,6 +35,9 @@
/* Define to 1 if you have the <asm/types.h> header file. */
#undef HAVE_ASM_TYPES_H
/* Define to 1 if you have the <asm/user.h> header file. */
#undef HAVE_ASM_USER_H
/* Define to 1 if you have the <AudioToolbox/AudioConverter.h> header file. */
#undef HAVE_AUDIOTOOLBOX_AUDIOCONVERTER_H
......
......@@ -528,9 +528,15 @@ void get_selector_entry( struct thread *thread, int entry, unsigned int *base,
}
#if defined(linux) && defined(HAVE_SYS_USER_H) && (defined(__i386__) || defined(__x86_64__))
#if defined(linux) && (defined(HAVE_SYS_USER_H) || defined(HAVE_ASM_USER_H)) \
&& (defined(__i386__) || defined(__x86_64__))
#ifdef HAVE_SYS_USER_H
#include <sys/user.h>
#endif
#ifdef HAVE_ASM_USER_H
#include <asm/user.h>
#endif
/* 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