]> granicus.if.org Git - strace/commitdiff
2003-01-13 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 14 Jan 2003 07:53:33 +0000 (07:53 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 14 Jan 2003 07:53:33 +0000 (07:53 +0000)
* strace.c [! HAVE_STRSIGNAL]: Clean up #ifdefs on decls for
sys_siglist and _sys_siglist.
Reported by John Hughes <john@Calva.COM>.

strace.c

index b91b02682dce091be3946aa83a5f7345813aed59..a456efd24011cf0c1309ed82e380166556f09a82 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -1311,13 +1311,12 @@ int errno;
 
 #ifndef HAVE_STRSIGNAL
 
-#ifdef HAVE__SYS_SIGLIST
-#if !HAVE_DECL_SYS_SIGLIST
+#if defined HAVE_SYS_SIGLIST && !defined HAVE_DECL_SYS_SIGLIST
 extern char *sys_siglist[];
-       extern char *_sys_siglist[];
-#else
 #endif
-#endif /* SYS_SIGLIST_DECLARED */
+#if defined HAVE_SYS__SIGLIST && !defined HAVE_DECL__SYS_SIGLIST
+extern char *_sys_siglist[];
+#endif
 
 const char *
 strsignal(sig)