diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-17 10:24:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-17 10:24:09 +0000 |
commit | f7554628e9af121a4fe651e1afe260420f9e7e72 (patch) | |
tree | 390bc7abc77a6d8281e50c35ecf92dc1286b09a1 /lib | |
parent | 8c86f7bf0f891c0bd0bee46bb31b92d8254c96d7 (diff) |
unistd.h is always in the same place; no need to #include the result of
a maze of conditional #define's
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/bf/bf_opts.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/bf/bfspeed.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/cast/cast_spd.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/cast/castopts.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/des/des_locl.h | 10 | ||||
-rw-r--r-- | lib/libcrypto/des/des_opts.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/des/speed.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/idea/idea_spd.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/opensslconf.h.in | 3 | ||||
-rw-r--r-- | lib/libcrypto/rc2/rc2speed.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/rc4/rc4speed.c | 2 | ||||
-rw-r--r-- | lib/libcrypto/rc5/rc5speed.c | 2 |
12 files changed, 11 insertions, 22 deletions
diff --git a/lib/libcrypto/bf/bf_opts.c b/lib/libcrypto/bf/bf_opts.c index 1721bb99b4a..7a2a8b571c6 100644 --- a/lib/libcrypto/bf/bf_opts.c +++ b/lib/libcrypto/bf/bf_opts.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/bf/bfspeed.c b/lib/libcrypto/bf/bfspeed.c index c41ef3b4035..4fbf81d00c7 100644 --- a/lib/libcrypto/bf/bfspeed.c +++ b/lib/libcrypto/bf/bfspeed.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/cast/cast_spd.c b/lib/libcrypto/cast/cast_spd.c index d650af475c3..0f99e0e570d 100644 --- a/lib/libcrypto/cast/cast_spd.c +++ b/lib/libcrypto/cast/cast_spd.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/cast/castopts.c b/lib/libcrypto/cast/castopts.c index 33b2c7b06fd..f18a49bd6ee 100644 --- a/lib/libcrypto/cast/castopts.c +++ b/lib/libcrypto/cast/castopts.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/des/des_locl.h b/lib/libcrypto/des/des_locl.h index a3b512e9b04..cf7811041ef 100644 --- a/lib/libcrypto/des/des_locl.h +++ b/lib/libcrypto/des/des_locl.h @@ -70,16 +70,8 @@ #include <stdio.h> #include <stdlib.h> -#ifndef OPENSSL_SYS_MSDOS -#if !defined(OPENSSL_SYS_VMS) || defined(__DECC) -#ifdef OPENSSL_UNISTD -# include OPENSSL_UNISTD -#else -# include <unistd.h> -#endif +#include <unistd.h> #include <math.h> -#endif -#endif #include <openssl/des.h> #ifdef OPENSSL_SYS_MSDOS /* Visual C++ 2.1 (Windows NT/95) */ diff --git a/lib/libcrypto/des/des_opts.c b/lib/libcrypto/des/des_opts.c index 2df82962c5a..c713c5e3195 100644 --- a/lib/libcrypto/des/des_opts.c +++ b/lib/libcrypto/des/des_opts.c @@ -66,7 +66,7 @@ #include <stdio.h> #ifndef OPENSSL_SYS_MSDOS #include <openssl/e_os2.h> -#include OPENSSL_UNISTD +#include <unistd.h> #else #include <io.h> extern void exit(); diff --git a/lib/libcrypto/des/speed.c b/lib/libcrypto/des/speed.c index 1616f4b7c95..67a8edf00ff 100644 --- a/lib/libcrypto/des/speed.c +++ b/lib/libcrypto/des/speed.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/idea/idea_spd.c b/lib/libcrypto/idea/idea_spd.c index 699353e8719..cce4be9e6fb 100644 --- a/lib/libcrypto/idea/idea_spd.c +++ b/lib/libcrypto/idea/idea_spd.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/opensslconf.h.in b/lib/libcrypto/opensslconf.h.in index 97e37455634..4c92f144cb0 100644 --- a/lib/libcrypto/opensslconf.h.in +++ b/lib/libcrypto/opensslconf.h.in @@ -10,9 +10,6 @@ #endif #endif -#undef OPENSSL_UNISTD -#define OPENSSL_UNISTD <unistd.h> - #undef OPENSSL_EXPORT_VAR_AS_FUNCTION #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) diff --git a/lib/libcrypto/rc2/rc2speed.c b/lib/libcrypto/rc2/rc2speed.c index 85cf6f65bf1..31bfc453f5c 100644 --- a/lib/libcrypto/rc2/rc2speed.c +++ b/lib/libcrypto/rc2/rc2speed.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/rc4/rc4speed.c b/lib/libcrypto/rc4/rc4speed.c index 0ebd38123d0..a1207231fa9 100644 --- a/lib/libcrypto/rc4/rc4speed.c +++ b/lib/libcrypto/rc4/rc4speed.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE diff --git a/lib/libcrypto/rc5/rc5speed.c b/lib/libcrypto/rc5/rc5speed.c index 8e363be535b..3bcc8f49c0a 100644 --- a/lib/libcrypto/rc5/rc5speed.c +++ b/lib/libcrypto/rc5/rc5speed.c @@ -66,7 +66,7 @@ #include <stdio.h> #include <openssl/e_os2.h> -#include OPENSSL_UNISTD_IO +#include <unistd.h> OPENSSL_DECLARE_EXIT #ifndef OPENSSL_SYS_NETWARE |