diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-02-25 03:40:45 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-02-25 03:40:45 +0100 |
commit | 1734e276d99b17e92d4233fac7aef3a3180aaca7 (patch) | |
tree | 3bacc892c97d1db09c0e4c046e8398b57abb697e /openbsd-compat/readpassphrase.c | |
parent | Add includes.h for compatibility stuff. (diff) | |
download | openssh-1734e276d99b17e92d4233fac7aef3a3180aaca7.tar.xz openssh-1734e276d99b17e92d4233fac7aef3a3180aaca7.zip |
Move definition of _NSIG.
_NSIG is only unsed in one file, so move it there prevent redefinition
warnings reported by Kevin Brott.
Diffstat (limited to '')
-rw-r--r-- | openbsd-compat/readpassphrase.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c index 62b6d0d84..d63cdf2f0 100644 --- a/openbsd-compat/readpassphrase.c +++ b/openbsd-compat/readpassphrase.c @@ -46,6 +46,14 @@ # define _POSIX_VDISABLE VDISABLE #endif +#ifndef _NSIG +# ifdef NSIG +# define _NSIG NSIG +# else +# define _NSIG 128 +# endif +#endif + static volatile sig_atomic_t signo[_NSIG]; static void handler(int); |