When reporting signals, use short signal names (SIGfoo) instead of strerror
* defs.h: Remove strsignal declaration.
* signal.c: Better check for SI_FROMUSER define.
* strace.c (strerror): Remove this function.
(trace): Use short signal names (SIGfoo) instead of strerror.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/signal.c b/signal.c
index 97c8d1d..bffdec0 100644
--- a/signal.c
+++ b/signal.c
@@ -418,8 +418,10 @@
#define SI_TKILL -6 /* sent by tkill */
#define SI_ASYNCNL -60 /* sent by asynch name lookup completion */
-#define SI_FROMUSER(sip) ((sip)->si_code <= 0)
+#endif
+#ifndef SI_FROMUSER
+# define SI_FROMUSER(sip) ((sip)->si_code <= 0)
#endif
#if __GLIBC_MINOR__ < 1