diff lib/strsignal.c @ 9893:ec6e90aaf2d7

Fix two compilation errors.
author Bruno Haible <bruno@clisp.org>
date Sat, 12 Apr 2008 01:34:34 +0200 (2008-04-11)
parents 878f41b0e41e
children 8a3539888308
line wrap: on
line diff
--- a/lib/strsignal.c
+++ b/lib/strsignal.c
@@ -66,7 +66,9 @@
 #  ifndef NSIG
 #   define NSIG 32
 #  endif /* NSIG */
+#  if !HAVE_DECL__SYS_SIGLIST
 static const char *_sys_siglist[NSIG];
+#  endif
 # endif /* !HAVE_DECL_SYS_SIGLIST */
 
 #endif /* _LIBC */
@@ -147,7 +149,6 @@
 #  define init_sig(sig, abbrev, desc) \
   if (sig >= 0 && sig < NSIG) \
     _sys_siglist[sig] = desc;
-} while (0);
 
 #  include "siglist.h"