aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/include/libc/sys/features.h4
-rw-r--r--system/include/libc/sys/signal.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/system/include/libc/sys/features.h b/system/include/libc/sys/features.h
index 9faf2b89..87a520a0 100644
--- a/system/include/libc/sys/features.h
+++ b/system/include/libc/sys/features.h
@@ -25,6 +25,10 @@
extern "C" {
#endif
+#if EMSCRIPTEN
+#define _POSIX_REALTIME_SIGNALS 1
+#endif
+
/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes. */
#ifdef __rtems__
diff --git a/system/include/libc/sys/signal.h b/system/include/libc/sys/signal.h
index 543b626e..910ccf78 100644
--- a/system/include/libc/sys/signal.h
+++ b/system/include/libc/sys/signal.h
@@ -114,6 +114,7 @@ struct sigaction
_sig_func_ptr sa_handler;
sigset_t sa_mask;
int sa_flags;
+ void (*sa_sigaction)(int, siginfo_t *, void *); /* XXX EMSCRIPTEN */
};
#endif /* defined(__rtems__) */