From e0b5acb2ab08397f2d6d9a5ca583549d71bc5b89 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 10 Jul 2023 21:19:43 +0200 Subject: [PATCH] libc: Make struct sigaction C-compatible --- libc/include/bits/signal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/include/bits/signal.h b/libc/include/bits/signal.h index 2cf92f99..423787e1 100644 --- a/libc/include/bits/signal.h +++ b/libc/include/bits/signal.h @@ -15,7 +15,11 @@ struct sigaction __simple_sighandler_t sa_handler; sigset_t sa_mask; int sa_flags; +#ifdef __cplusplus void* __sa_sigreturn = nullptr; +#else + void* __sa_sigreturn; +#endif }; // Constants for the 'how' parameter in sigprocmask().