mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Move definition of _NSIG.
_NSIG is only unsed in one file, so move it there prevent redefinition warnings reported by Kevin Brott.
This commit is contained in:
parent
a47ead7c95
commit
1734e276d9
@ -822,14 +822,6 @@ struct winsize {
|
|||||||
# define SSH_IOBUFSZ 8192
|
# define SSH_IOBUFSZ 8192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _NSIG
|
|
||||||
# ifdef NSIG
|
|
||||||
# define _NSIG NSIG
|
|
||||||
# else
|
|
||||||
# define _NSIG 128
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Platforms that have arc4random_uniform() and not arc4random_stir()
|
* Platforms that have arc4random_uniform() and not arc4random_stir()
|
||||||
* shouldn't need the latter.
|
* shouldn't need the latter.
|
||||||
|
@ -46,6 +46,14 @@
|
|||||||
# define _POSIX_VDISABLE VDISABLE
|
# define _POSIX_VDISABLE VDISABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _NSIG
|
||||||
|
# ifdef NSIG
|
||||||
|
# define _NSIG NSIG
|
||||||
|
# else
|
||||||
|
# define _NSIG 128
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
static volatile sig_atomic_t signo[_NSIG];
|
static volatile sig_atomic_t signo[_NSIG];
|
||||||
|
|
||||||
static void handler(int);
|
static void handler(int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user