summaryrefslogtreecommitdiffstats
path: root/crypto/ui
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-06-04 09:13:19 +0000
committerRichard Levitte <levitte@openssl.org>2003-06-04 09:13:19 +0000
commit2ee67f1dad9b2c8e6a097ba1fdd2ea2b0eb69719 (patch)
tree54154cd8a9b1bf4913fb489a5eeb2419649e4666 /crypto/ui
parent4af31846621aec07ab167dbec2d025deb00fcf75 (diff)
Make sure the sigaction structure and fileno function are properly declared with an ANSI compiler on Solaris (and possibly others).
Diffstat (limited to 'crypto/ui')
-rw-r--r--crypto/ui/ui_openssl.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c
index 75318d48a1..ce1cb1dfcd 100644
--- a/crypto/ui/ui_openssl.c
+++ b/crypto/ui/ui_openssl.c
@@ -117,6 +117,13 @@
#include <openssl/e_os2.h>
+#define _POSIX_C_SOURCE 1
+#include <signal.h>
+#include <stdio.h>
+#undef _POSIX_C_SOURCE
+#include <string.h>
+#include <errno.h>
+
#if !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS)
# ifdef OPENSSL_UNISTD
# include OPENSSL_UNISTD
@@ -145,10 +152,6 @@
/* 06-Apr-92 Luke Brennan Support for VMS */
#include "ui_locl.h"
#include "cryptlib.h"
-#include <signal.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
#ifdef OPENSSL_SYS_VMS /* prototypes for sys$whatever */
# include <starlet.h>
@@ -476,7 +479,7 @@ static int open_console(UI *ui)
#endif
#if defined(TTY_get) && !defined(OPENSSL_SYS_VMS)
- if (TTY_get(fileno(tty_in),&tty_orig) == -1)
+ if (TTY_get(fileno(tty_in),&tty_orig) == -1)
{
#ifdef ENOTTY
if (errno == ENOTTY)