aboutsummaryrefslogtreecommitdiff
path: root/src/common/android/include/sys/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/android/include/sys/user.h')
-rw-r--r--src/common/android/include/sys/user.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/android/include/sys/user.h b/src/common/android/include/sys/user.h
index 40567416..5825a3ef 100644
--- a/src/common/android/include/sys/user.h
+++ b/src/common/android/include/sys/user.h
@@ -192,13 +192,18 @@ struct user_fpregs_struct {
};
#elif defined(__x86_64__)
-#include <sys/types.h>
+
+// Bionic's user_fpregs_struct calls the tag word twd instead of ftw. To avoid
+// changing lots of Bionic, uUse an ugly macro renaming trick with
+// #include_next.
+// TODO(rmcilroy): Remove when NDK headers are fixed.
+#define user_fpregs_struct __bionic_user_fpregs_struct
#include_next <sys/user.h>
+#undef user_fpregs_struct
-// This struct is essentially the same as user_i387_struct in sys/user.h
+// This struct is the same as user_fpregs_struct in Bionic's sys/user.h
// except that the struct name and individual field names are chosen here
// to match the ones used in breakpad for other x86_64 platforms.
-
struct user_fpregs_struct {
__u16 cwd;
__u16 swd;