Commit 2ee67f1d authored by Richard Levitte's avatar Richard Levitte
Browse files

Make sure the sigaction structure and fileno function are properly declared...

Make sure the sigaction structure and fileno function are properly declared with an ANSI compiler on Solaris (and possibly others).
parent 4af31846
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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>