diff options
author | Bodo Möller <bodo@openssl.org> | 1999-06-09 13:23:38 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-06-09 13:23:38 +0000 |
commit | e766a681aa4df604b20ce2d23cd131b74af9eaf7 (patch) | |
tree | 6ab2ba6c2881f49cb0ec8091d04100eef3653c84 /crypto/cast | |
parent | 9e952fc8770bf72b03fdd7acf6a1843070b44b4b (diff) | |
download | openssl-new-e766a681aa4df604b20ce2d23cd131b74af9eaf7.tar.gz |
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/cast')
-rw-r--r-- | crypto/cast/cast_spd.c | 11 | ||||
-rw-r--r-- | crypto/cast/castopts.c | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/crypto/cast/cast_spd.c b/crypto/cast/cast_spd.c index 47af9639e4..c0726906c2 100644 --- a/crypto/cast/cast_spd.c +++ b/crypto/cast/cast_spd.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> diff --git a/crypto/cast/castopts.c b/crypto/cast/castopts.c index 25c40af06a..642e9725af 100644 --- a/crypto/cast/castopts.c +++ b/crypto/cast/castopts.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> |