openssl: fixups for sunos
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 31 Aug 2011 19:11:10 +0000 (19:11 +0000)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 12 Sep 2011 21:48:30 +0000 (21:48 +0000)
deps/openssl/openssl/crypto/ui/ui_openssl.c

index 06270f0..40d2031 100644 (file)
  * 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 <signal.h>
 #include <stdio.h>
 #include <string.h>
  * 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