diff options
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/des.c | 3 | ||||
-rw-r--r-- | crypto/des/des_locl.h | 7 | ||||
-rw-r--r-- | crypto/des/des_opts.c | 3 | ||||
-rw-r--r-- | crypto/des/destest.c | 3 | ||||
-rw-r--r-- | crypto/des/read_pwd.c | 3 | ||||
-rw-r--r-- | crypto/des/speed.c | 11 |
6 files changed, 17 insertions, 13 deletions
diff --git a/crypto/des/des.c b/crypto/des/des.c index 91d7967e31..32ddf1b927 100644 --- a/crypto/des/des.c +++ b/crypto/des/des.c @@ -60,7 +60,8 @@ #include <stdlib.h> #ifndef MSDOS #ifndef VMS -#include <unistd.h> +#include <openssl/opensslconf.h> +#include OPENSSL_UNISTD #else /* VMS */ #ifdef __DECC #include <unistd.h> diff --git a/crypto/des/des_locl.h b/crypto/des/des_locl.h index c9312f806a..a44da79b92 100644 --- a/crypto/des/des_locl.h +++ b/crypto/des/des_locl.h @@ -67,15 +67,16 @@ #include <stdio.h> #include <stdlib.h> + +#include <openssl/opensslconf.h> + #ifndef MSDOS #if !defined(VMS) || defined(__DECC) -#include <unistd.h> +#include OPENSSL_UNISTD #endif #endif #include <openssl/des.h> -#include <openssl/opensslconf.h> - #ifdef MSDOS /* Visual C++ 2.1 (Windows NT/95) */ #include <stdlib.h> #include <errno.h> diff --git a/crypto/des/des_opts.c b/crypto/des/des_opts.c index 500509ea73..746c456f8f 100644 --- a/crypto/des/des_opts.c +++ b/crypto/des/des_opts.c @@ -65,7 +65,8 @@ #include <stdio.h> #ifndef MSDOS -#include <unistd.h> +#include <openssl/e_os2.h> +#include OPENSSL_UNISTD #else #include <io.h> extern void exit(); diff --git a/crypto/des/destest.c b/crypto/des/destest.c index 0054fb9a97..d92fabdf3f 100644 --- a/crypto/des/destest.c +++ b/crypto/des/destest.c @@ -66,7 +66,8 @@ #include <stdlib.h> #ifndef MSDOS #if !defined(VMS) || defined(__DECC) -#include <unistd.h> +#include <openssl/opensslconf.h> +#include OPENSSL_UNISTD #endif /* VMS */ #else #include <io.h> diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c index d280aa14a5..7639fc0c3b 100644 --- a/crypto/des/read_pwd.c +++ b/crypto/des/read_pwd.c @@ -57,7 +57,8 @@ */ #if !defined(MSDOS) && !defined(VMS) && !defined(WIN32) -#include <unistd.h> +#include <openssl/opensslconf.h> +#include OPENSSL_UNISTD /* If unistd.h defines _POSIX_VERSION, we conclude that we * are on a POSIX system and have sigaction and termios. */ #if defined(_POSIX_VERSION) diff --git a/crypto/des/speed.c b/crypto/des/speed.c index ed3b760167..da41abcb03 100644 --- a/crypto/des/speed.c +++ b/crypto/des/speed.c @@ -64,12 +64,11 @@ #endif #include <stdio.h> -#ifndef MSDOS -#include <unistd.h> -#else -#include <io.h> -extern int exit(); -#endif + +#include <openssl/e_os2.h> +#include OPENSSL_UNISTD_IO +OPENSSL_DECLARE_EXIT + #include <signal.h> #ifndef _IRIX #include <time.h> |