extern int errno;
#endif
+#ifndef isblank
+#define isblank(c) ((c) == ' ' || (c) == '\t')
+#endif
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#ifdef _POSIX_VERSION
#include "signame.h"
#endif
-#ifndef isblank
-#define isblank(c) ((c) == ' ' || (c) == '\t')
-#endif
-
-#if !defined(NSIG) && defined(_NSIG)
+/* Some systems do not define NSIG in <signal.h>. */
+#ifndef NSIG
+#ifdef _NSIG
#define NSIG _NSIG
+#else
+#define NSIG 32
+#endif
#endif
#ifndef RETSIGTYPE