From 4a09815e6cded2c45202da5ebde7a44977d383f1 Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Thu, 26 Mar 2020 13:47:31 +0100
Subject: [PATCH] [libc] Avoid confusing Eva on the value of SIG_IGN, SIG_DFL
 and SIG_ERR

---
 share/libc/signal.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/share/libc/signal.h b/share/libc/signal.h
index 01f6d674da7..063ba74ba58 100644
--- a/share/libc/signal.h
+++ b/share/libc/signal.h
@@ -46,13 +46,13 @@ typedef void (*__fc_sighandler_t) (int);
 /* for BSD 4.4 */
 typedef __fc_sighandler_t sig_t;
 
-extern sig_t __fc_sig_dfl;
-extern sig_t __fc_sig_ign;
-extern sig_t __fc_sig_err;
+extern void __fc_sig_dfl(int);
+extern void __fc_sig_ign(int);
+extern void __fc_sig_err(int);
 
-#define SIG_DFL __fc_sig_dfl     /* default signal handling */
-#define SIG_IGN __fc_sig_ign     /* ignore signal */
-#define SIG_ERR __fc_sig_err    /* error return from signal */
+#define SIG_DFL (&__fc_sig_dfl)     /* default signal handling */
+#define SIG_IGN (&__fc_sig_ign)     /* ignore signal */
+#define SIG_ERR (&__fc_sig_err)     /* error return from signal */
 
 #define SIG_BLOCK 0
 #define SIG_UNBLOCK 1
-- 
GitLab