From 2ee67f1dad9b2c8e6a097ba1fdd2ea2b0eb69719 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 4 Jun 2003 09:13:19 +0000 Subject: [PATCH] Make sure the sigaction structure and fileno function are properly declared with an ANSI compiler on Solaris (and possibly others). --- crypto/ui/ui_openssl.c | 13 ++++++++----- 1 file 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 +#define _POSIX_C_SOURCE 1 +#include +#include +#undef _POSIX_C_SOURCE +#include +#include + #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 -#include -#include -#include #ifdef OPENSSL_SYS_VMS /* prototypes for sys$whatever */ # include @@ -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) -- 2.25.1