diff options
-rw-r--r-- | defines.h | 8 | ||||
-rw-r--r-- | openbsd-compat/readpassphrase.c | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -822,14 +822,6 @@ struct winsize { | |||
822 | # define SSH_IOBUFSZ 8192 | 822 | # define SSH_IOBUFSZ 8192 |
823 | #endif | 823 | #endif |
824 | 824 | ||
825 | #ifndef _NSIG | ||
826 | # ifdef NSIG | ||
827 | # define _NSIG NSIG | ||
828 | # else | ||
829 | # define _NSIG 128 | ||
830 | # endif | ||
831 | #endif | ||
832 | |||
833 | /* | 825 | /* |
834 | * Platforms that have arc4random_uniform() and not arc4random_stir() | 826 | * Platforms that have arc4random_uniform() and not arc4random_stir() |
835 | * shouldn't need the latter. | 827 | * shouldn't need the latter. |
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 @@ | |||
46 | # define _POSIX_VDISABLE VDISABLE | 46 | # define _POSIX_VDISABLE VDISABLE |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #ifndef _NSIG | ||
50 | # ifdef NSIG | ||
51 | # define _NSIG NSIG | ||
52 | # else | ||
53 | # define _NSIG 128 | ||
54 | # endif | ||
55 | #endif | ||
56 | |||
49 | static volatile sig_atomic_t signo[_NSIG]; | 57 | static volatile sig_atomic_t signo[_NSIG]; |
50 | 58 | ||
51 | static void handler(int); | 59 | static void handler(int); |