diff options
| author | deraadt <> | 2014-04-17 10:24:08 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-04-17 10:24:08 +0000 |
| commit | 50a3fef3b6e05ce53175dbc182232e5c3b0defbf (patch) | |
| tree | 89162cd9b56786344ca6670371387c1aeed65c6d /src/lib/libcrypto/des | |
| parent | 03cd8ce7162f8ebea488d803ebb42fa67350d1b0 (diff) | |
| download | openbsd-50a3fef3b6e05ce53175dbc182232e5c3b0defbf.tar.gz openbsd-50a3fef3b6e05ce53175dbc182232e5c3b0defbf.tar.bz2 openbsd-50a3fef3b6e05ce53175dbc182232e5c3b0defbf.zip | |
unistd.h is always in the same place; no need to #include the result of
a maze of conditional #define's
Diffstat (limited to 'src/lib/libcrypto/des')
| -rw-r--r-- | src/lib/libcrypto/des/des_locl.h | 10 | ||||
| -rw-r--r-- | src/lib/libcrypto/des/des_opts.c | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/des/speed.c | 2 |
3 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/libcrypto/des/des_locl.h b/src/lib/libcrypto/des/des_locl.h index a3b512e9b0..cf7811041e 100644 --- a/src/lib/libcrypto/des/des_locl.h +++ b/src/lib/libcrypto/des/des_locl.h | |||
| @@ -70,16 +70,8 @@ | |||
| 70 | #include <stdio.h> | 70 | #include <stdio.h> |
| 71 | #include <stdlib.h> | 71 | #include <stdlib.h> |
| 72 | 72 | ||
| 73 | #ifndef OPENSSL_SYS_MSDOS | 73 | #include <unistd.h> |
| 74 | #if !defined(OPENSSL_SYS_VMS) || defined(__DECC) | ||
| 75 | #ifdef OPENSSL_UNISTD | ||
| 76 | # include OPENSSL_UNISTD | ||
| 77 | #else | ||
| 78 | # include <unistd.h> | ||
| 79 | #endif | ||
| 80 | #include <math.h> | 74 | #include <math.h> |
| 81 | #endif | ||
| 82 | #endif | ||
| 83 | #include <openssl/des.h> | 75 | #include <openssl/des.h> |
| 84 | 76 | ||
| 85 | #ifdef OPENSSL_SYS_MSDOS /* Visual C++ 2.1 (Windows NT/95) */ | 77 | #ifdef OPENSSL_SYS_MSDOS /* Visual C++ 2.1 (Windows NT/95) */ |
diff --git a/src/lib/libcrypto/des/des_opts.c b/src/lib/libcrypto/des/des_opts.c index 2df82962c5..c713c5e319 100644 --- a/src/lib/libcrypto/des/des_opts.c +++ b/src/lib/libcrypto/des/des_opts.c | |||
| @@ -66,7 +66,7 @@ | |||
| 66 | #include <stdio.h> | 66 | #include <stdio.h> |
| 67 | #ifndef OPENSSL_SYS_MSDOS | 67 | #ifndef OPENSSL_SYS_MSDOS |
| 68 | #include <openssl/e_os2.h> | 68 | #include <openssl/e_os2.h> |
| 69 | #include OPENSSL_UNISTD | 69 | #include <unistd.h> |
| 70 | #else | 70 | #else |
| 71 | #include <io.h> | 71 | #include <io.h> |
| 72 | extern void exit(); | 72 | extern void exit(); |
diff --git a/src/lib/libcrypto/des/speed.c b/src/lib/libcrypto/des/speed.c index 1616f4b7c9..67a8edf00f 100644 --- a/src/lib/libcrypto/des/speed.c +++ b/src/lib/libcrypto/des/speed.c | |||
| @@ -66,7 +66,7 @@ | |||
| 66 | #include <stdio.h> | 66 | #include <stdio.h> |
| 67 | 67 | ||
| 68 | #include <openssl/e_os2.h> | 68 | #include <openssl/e_os2.h> |
| 69 | #include OPENSSL_UNISTD_IO | 69 | #include <unistd.h> |
| 70 | OPENSSL_DECLARE_EXIT | 70 | OPENSSL_DECLARE_EXIT |
| 71 | 71 | ||
| 72 | #ifndef OPENSSL_SYS_NETWARE | 72 | #ifndef OPENSSL_SYS_NETWARE |
