Skip to content

Commit f016b8f

Browse files
i#2154 Android64: Fix compile error (#7237)
Fixes a compile error for Android64 introduced by #7202 (commit 2f2614b): ``` core/arch/aarch64/asm_offsetsx.h:85:1: error: offsetof of incomplete type 'struct tlsdesc_t' 85 | OFFSET(struct tlsdesc_t, arg, 8) | ^ ~~~~~~ ``` `tlsdesc_t` is not defined on Android. Issues: #2154, #7226
1 parent d868553 commit f016b8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/arch/aarch64/asm_offsetsx.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,7 @@ OFFSET(spill_state_t, r5, 40)
8282
OFFSET(spill_state_t, fcache_return, 64)
8383
#define spill_state_t_OFFSET_fcache_return 64
8484

85+
#if !defined(ANDROID)
8586
OFFSET(struct tlsdesc_t, arg, 8)
86-
#define struct_tlsdesc_t_OFFSET_arg 8
87+
# define struct_tlsdesc_t_OFFSET_arg 8
88+
#endif

0 commit comments

Comments
 (0)