From f36f9d290d7f6632851612aeb14d27226b1a777a Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 27 Dec 2024 22:43:49 +0100 Subject: [ANDROID] Fix build --- src/include/signals.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/include') diff --git a/src/include/signals.h b/src/include/signals.h index a068ffbf..1a2a9b39 100644 --- a/src/include/signals.h +++ b/src/include/signals.h @@ -14,27 +14,27 @@ typedef struct x64_sigaction_s { void (*sa_restorer)(void); } x64_sigaction_t; -#ifdef ANDROID -typedef struct android_sigaction_s { - int sa_flags; +typedef struct x64_sigaction_restorer_s { union { sighandler_t _sa_handler; void (*_sa_sigaction)(int, siginfo_t *, void *); } _u; - sigset_t sa_mask; + uint32_t sa_flags; void (*sa_restorer)(void); -} android_sigaction_t; -#endif + sigset_t sa_mask; +} x64_sigaction_restorer_t; -typedef struct x64_sigaction_restorer_s { +#ifdef ANDROID +typedef struct android_sigaction_s { + int sa_flags; union { sighandler_t _sa_handler; void (*_sa_sigaction)(int, siginfo_t *, void *); } _u; - uint32_t sa_flags; - void (*sa_restorer)(void); sigset_t sa_mask; -} x64_sigaction_restorer_t; + void (*sa_restorer)(void); +} android_sigaction_t; +#endif #ifdef BOX32 typedef struct __attribute__((packed)) i386_sigaction_s { -- cgit 1.4.1