summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto
diff options
context:
space:
mode:
authorderaadt <>2014-04-17 10:24:08 +0000
committerderaadt <>2014-04-17 10:24:08 +0000
commit50a3fef3b6e05ce53175dbc182232e5c3b0defbf (patch)
tree89162cd9b56786344ca6670371387c1aeed65c6d /src/lib/libcrypto
parent03cd8ce7162f8ebea488d803ebb42fa67350d1b0 (diff)
downloadopenbsd-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')
-rw-r--r--src/lib/libcrypto/bf/bf_opts.c2
-rw-r--r--src/lib/libcrypto/bf/bfspeed.c2
-rw-r--r--src/lib/libcrypto/cast/cast_spd.c2
-rw-r--r--src/lib/libcrypto/cast/castopts.c2
-rw-r--r--src/lib/libcrypto/des/des_locl.h10
-rw-r--r--src/lib/libcrypto/des/des_opts.c2
-rw-r--r--src/lib/libcrypto/des/speed.c2
-rw-r--r--src/lib/libcrypto/idea/idea_spd.c2
-rw-r--r--src/lib/libcrypto/opensslconf.h.in3
-rw-r--r--src/lib/libcrypto/rc2/rc2speed.c2
-rw-r--r--src/lib/libcrypto/rc4/rc4speed.c2
-rw-r--r--src/lib/libcrypto/rc5/rc5speed.c2
12 files changed, 11 insertions, 22 deletions
diff --git a/src/lib/libcrypto/bf/bf_opts.c b/src/lib/libcrypto/bf/bf_opts.c
index 1721bb99b4..7a2a8b571c 100644
--- a/src/lib/libcrypto/bf/bf_opts.c
+++ b/src/lib/libcrypto/bf/bf_opts.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/bf/bfspeed.c b/src/lib/libcrypto/bf/bfspeed.c
index c41ef3b403..4fbf81d00c 100644
--- a/src/lib/libcrypto/bf/bfspeed.c
+++ b/src/lib/libcrypto/bf/bfspeed.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/cast/cast_spd.c b/src/lib/libcrypto/cast/cast_spd.c
index d650af475c..0f99e0e570 100644
--- a/src/lib/libcrypto/cast/cast_spd.c
+++ b/src/lib/libcrypto/cast/cast_spd.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/cast/castopts.c b/src/lib/libcrypto/cast/castopts.c
index 33b2c7b06f..f18a49bd6e 100644
--- a/src/lib/libcrypto/cast/castopts.c
+++ b/src/lib/libcrypto/cast/castopts.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
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>
72extern void exit(); 72extern 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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/idea/idea_spd.c b/src/lib/libcrypto/idea/idea_spd.c
index 699353e871..cce4be9e6f 100644
--- a/src/lib/libcrypto/idea/idea_spd.c
+++ b/src/lib/libcrypto/idea/idea_spd.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/opensslconf.h.in b/src/lib/libcrypto/opensslconf.h.in
index 97e3745563..4c92f144cb 100644
--- a/src/lib/libcrypto/opensslconf.h.in
+++ b/src/lib/libcrypto/opensslconf.h.in
@@ -10,9 +10,6 @@
10#endif 10#endif
11#endif 11#endif
12 12
13#undef OPENSSL_UNISTD
14#define OPENSSL_UNISTD <unistd.h>
15
16#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 13#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
17 14
18#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 15#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
diff --git a/src/lib/libcrypto/rc2/rc2speed.c b/src/lib/libcrypto/rc2/rc2speed.c
index 85cf6f65bf..31bfc453f5 100644
--- a/src/lib/libcrypto/rc2/rc2speed.c
+++ b/src/lib/libcrypto/rc2/rc2speed.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/rc4/rc4speed.c b/src/lib/libcrypto/rc4/rc4speed.c
index 0ebd38123d..a1207231fa 100644
--- a/src/lib/libcrypto/rc4/rc4speed.c
+++ b/src/lib/libcrypto/rc4/rc4speed.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE
diff --git a/src/lib/libcrypto/rc5/rc5speed.c b/src/lib/libcrypto/rc5/rc5speed.c
index 8e363be535..3bcc8f49c0 100644
--- a/src/lib/libcrypto/rc5/rc5speed.c
+++ b/src/lib/libcrypto/rc5/rc5speed.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>
70OPENSSL_DECLARE_EXIT 70OPENSSL_DECLARE_EXIT
71 71
72#ifndef OPENSSL_SYS_NETWARE 72#ifndef OPENSSL_SYS_NETWARE