diff options
Diffstat (limited to 'deps/openssl/openssl/crypto/ui/ui_openssl.c')
-rw-r--r-- | deps/openssl/openssl/crypto/ui/ui_openssl.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/deps/openssl/openssl/crypto/ui/ui_openssl.c b/deps/openssl/openssl/crypto/ui/ui_openssl.c index 40d2031156..b05cbf348f 100644 --- a/deps/openssl/openssl/crypto/ui/ui_openssl.c +++ b/deps/openssl/openssl/crypto/ui/ui_openssl.c @@ -122,6 +122,9 @@ * sigaction and fileno included. -pedantic would be more appropriate for * the intended purposes, but we can't prevent users from adding -ansi. */ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 2 +#endif #include <signal.h> #include <stdio.h> #include <string.h> @@ -175,19 +178,13 @@ * TERMIO, TERMIOS, VMS, MSDOS and SGTTY */ -#if defined(__sun) && !defined(TERMIOS) -# define TERMIOS -# undef TERMIO -# undef SGTTY -#endif - #if defined(__sgi) && !defined(TERMIOS) # define TERMIOS # undef TERMIO # undef SGTTY #endif -#if defined(linux) && !defined(TERMIO) +#if defined(linux) && !defined(TERMIO) && !defined(__ANDROID__) # undef TERMIOS # define TERMIO # undef SGTTY @@ -481,7 +478,7 @@ static int open_console(UI *ui) CRYPTO_w_lock(CRYPTO_LOCK_UI); is_a_tty = 1; -#if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) +#if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_BEOS) tty_in=stdin; tty_out=stderr; #else |