Cygwin: rename NSIG to _NSIG, change visibility of NSIG to MISC

NSIG is a deprecated symbol only visible under MISC visibility.
_NSIG is used widely instead, and on most systems NSIG is
defined in terms of _NSIG.

Follow suit: Change NSIG to _NSIG throughout and change visiblity
of NSIG to be defined only in __MISC_VISIBLE case.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2020-02-18 11:17:43 +01:00
parent f3793803a7
commit 40245925ce
7 changed files with 37 additions and 29 deletions

View File

@@ -174,7 +174,7 @@ psiginfo (const siginfo_t *info, const char *s)
ADD (strsignal (info->si_signo));
if (info->si_signo > 0 && info->si_signo < NSIG)
if (info->si_signo > 0 && info->si_signo < _NSIG)
{
switch (info->si_signo)
{