diff options
author | Bodo Möller <bodo@openssl.org> | 1999-06-09 15:23:38 +0200 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-06-09 15:23:38 +0200 |
commit | e766a681aa4df604b20ce2d23cd131b74af9eaf7 (patch) | |
tree | 6ab2ba6c2881f49cb0ec8091d04100eef3653c84 /crypto/bf | |
parent | Oops. Get rid of now incorrect comment. (diff) | |
download | openssl-e766a681aa4df604b20ce2d23cd131b74af9eaf7.tar.xz openssl-e766a681aa4df604b20ce2d23cd131b74af9eaf7.zip |
Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).
Allow configuring the name of that header file.
Diffstat (limited to 'crypto/bf')
-rw-r--r-- | crypto/bf/bf_opts.c | 11 | ||||
-rw-r--r-- | crypto/bf/bfspeed.c | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/crypto/bf/bf_opts.c b/crypto/bf/bf_opts.c index a0663b5801..5f330cc53c 100644 --- a/crypto/bf/bf_opts.c +++ b/crypto/bf/bf_opts.c @@ -64,12 +64,11 @@ #endif #include <stdio.h> -#ifndef MSDOS -#include <unistd.h> -#else -#include <io.h> -extern void exit(); -#endif + +#include <openssl/e_os2.h> +#include OPENSSL_UNISTD_IO +OPENSSL_DECLARE_EXIT + #include <signal.h> #ifndef _IRIX #include <time.h> diff --git a/crypto/bf/bfspeed.c b/crypto/bf/bfspeed.c index bc6cd8df5f..9b893e92cc 100644 --- a/crypto/bf/bfspeed.c +++ b/crypto/bf/bfspeed.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> |