projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4af3184
)
Make sure the sigaction structure and fileno function are properly declared with...
author
Richard Levitte
<levitte@openssl.org>
Wed, 4 Jun 2003 09:13:19 +0000
(09:13 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 4 Jun 2003 09:13:19 +0000
(09:13 +0000)
crypto/ui/ui_openssl.c
patch
|
blob
|
history
diff --git
a/crypto/ui/ui_openssl.c
b/crypto/ui/ui_openssl.c
index 75318d48a14290ddd7dc84eeba9ba2486d368634..ce1cb1dfcd13d217a60928f1dccb9a78c1082989 100644
(file)
--- a/
crypto/ui/ui_openssl.c
+++ b/
crypto/ui/ui_openssl.c
@@
-117,6
+117,13
@@
#include <openssl/e_os2.h>
#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
#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"
/* 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>
#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)
#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)
{
#ifdef ENOTTY
if (errno == ENOTTY)