Skip to content

Commit 7933830

Browse files
committed
[Android] Revert x86 workaround changes for NDK r11c.
BUG=599327 [email protected] [email protected] Review URL: https://codereview.chromium.org/2035343002 .
1 parent 240ed57 commit 7933830

File tree

1 file changed

+11
-0
lines changed
  • src/common/android/include/sys

1 file changed

+11
-0
lines changed

src/common/android/include/sys/user.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
// The purpose of this file is to glue the mismatching headers (Android NDK vs
3434
// glibc) and therefore avoid doing otherwise awkward #ifdefs in the code.
3535
// The following quirks are currently handled by this file:
36+
// - i386: Use the Android NDK but alias user_fxsr_struct > user_fpxregs_struct.
3637
// - aarch64: Add missing <stdint.h> include.
3738
// - Other platforms: Just use the Android NDK unchanged.
3839

@@ -45,4 +46,14 @@
4546

4647
#include_next <sys/user.h>
4748

49+
#ifdef __i386__
50+
#ifdef __cplusplus
51+
extern "C" {
52+
#endif // __cplusplus
53+
typedef struct user_fxsr_struct user_fpxregs_struct;
54+
#ifdef __cplusplus
55+
} // extern "C"
56+
#endif // __cplusplus
57+
#endif // __i386__
58+
4859
#endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H

0 commit comments

Comments
 (0)