Correct support for SunOS 4.1.3_U1.
[openssl.git] / crypto / ui / ui_openssl.c
index f967ba75d02f84ca52b0c9c824442c3fd89c6d7a..793846cbc64f4b86a67917574d40b77f0dcd0aa6 100644 (file)
 # define TTY_set(tty,data)     ioctl(tty,TIOCSETP,data)
 #endif
 
-#if !defined(_LIBC) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS) && !defined(OPENSSL_SYS_MACINTOSH_CLASSIC)
+#if !defined(_LIBC) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS) && !defined(OPENSSL_SYS_MACINTOSH_CLASSIC) && !defined(OPENSSL_SYS_SUNOS)
 # include <sys/ioctl.h>
 #endif
 
@@ -241,6 +241,10 @@ struct IOSB {
        };
 #endif
 
+#ifdef OPENSSL_SYS_SUNOS
+       typedef int sig_atomic_t;
+#endif
+
 #if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) || defined(MAC_OS_GUSI_SOURCE)
 /*
  * This one needs work. As a matter of fact the code is unoperational