]> granicus.if.org Git - strace/blobdiff - strace.c
2002-12-22 Roland McGrath <roland@redhat.com>
[strace] / strace.c
index 9a4773fbb608117fcfd905d0cf27901ce1e04d01..48b4feb772ecd5996ee12f34fa009a31491138fd 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -1209,10 +1209,10 @@ int sig;
 
 #ifndef HAVE_STRERROR
 
-#ifndef SYS_ERRLIST_DECLARED
+#if !HAVE_DECL_SYS_ERRLIST
 extern int sys_nerr;
 extern char *sys_errlist[];
-#endif /* SYS_ERRLIST_DECLARED */
+#endif /* HAVE_DECL_SYS_ERRLIST */
 
 const char *
 strerror(errno)
@@ -1231,11 +1231,11 @@ int errno;
 
 #ifndef HAVE_STRSIGNAL
 
-#ifndef SYS_SIGLIST_DECLARED
 #ifdef HAVE__SYS_SIGLIST
+#if !HAVE_DECL_SYS_SIGLIST
+extern char *sys_siglist[];
        extern char *_sys_siglist[];
 #else
-       extern char *sys_siglist[];
 #endif
 #endif /* SYS_SIGLIST_DECLARED */