about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-27 22:10:24 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-27 22:10:24 +0100
commit4fd59da003ac28f4d0b50d8a9f2efc9809d6d203 (patch)
tree27c8180963958a596401458c21dfc6b3dc6c705e /src/include
parente2d7cc5011f8f88d7c96d4d395ea9927a9d9ce8e (diff)
downloadbox64-4fd59da003ac28f4d0b50d8a9f2efc9809d6d203.tar.gz
box64-4fd59da003ac28f4d0b50d8a9f2efc9809d6d203.zip
[ANDROID] Try to fix signal handling on android
Diffstat (limited to 'src/include')
-rw-r--r--src/include/signals.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/signals.h b/src/include/signals.h
index ef72f401..353b7054 100644
--- a/src/include/signals.h
+++ b/src/include/signals.h
@@ -14,6 +14,18 @@ typedef struct x64_sigaction_s {
 	void (*sa_restorer)(void);
 } x64_sigaction_t;
 
+#ifdef ANDROID
+typedef struct android_sigaction_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
+
 typedef struct x64_sigaction_restorer_s {
 	union {
 	  sighandler_t _sa_handler;