From c18ef0fed55d7daf3031850e0a7f4aba4372a69a Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 31 Aug 2011 19:11:10 +0000 Subject: [PATCH] openssl: fixups for sunos --- deps/openssl/openssl/crypto/ui/ui_openssl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deps/openssl/openssl/crypto/ui/ui_openssl.c b/deps/openssl/openssl/crypto/ui/ui_openssl.c index 06270f09cd..40d2031156 100644 --- a/deps/openssl/openssl/crypto/ui/ui_openssl.c +++ b/deps/openssl/openssl/crypto/ui/ui_openssl.c @@ -122,7 +122,6 @@ * sigaction and fileno included. -pedantic would be more appropriate for * the intended purposes, but we can't prevent users from adding -ansi. */ -#define _POSIX_C_SOURCE 1 #include #include #include @@ -176,6 +175,12 @@ * 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