diff options
Diffstat (limited to 'src/lib/libcrypto/des/des_locl.h')
-rw-r--r-- | src/lib/libcrypto/des/des_locl.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/libcrypto/des/des_locl.h b/src/lib/libcrypto/des/des_locl.h index d6ea17cb68..4dfed199a7 100644 --- a/src/lib/libcrypto/des/des_locl.h +++ b/src/lib/libcrypto/des/des_locl.h | |||
@@ -72,7 +72,11 @@ | |||
72 | 72 | ||
73 | #ifndef MSDOS | 73 | #ifndef MSDOS |
74 | #if !defined(VMS) || defined(__DECC) | 74 | #if !defined(VMS) || defined(__DECC) |
75 | #include OPENSSL_UNISTD | 75 | #ifdef OPENSSL_UNISTD |
76 | # include OPENSSL_UNISTD | ||
77 | #else | ||
78 | # include <unistd.h> | ||
79 | #endif | ||
76 | #include <math.h> | 80 | #include <math.h> |
77 | #endif | 81 | #endif |
78 | #endif | 82 | #endif |
@@ -178,14 +182,14 @@ | |||
178 | #endif | 182 | #endif |
179 | 183 | ||
180 | /* The changes to this macro may help or hinder, depending on the | 184 | /* The changes to this macro may help or hinder, depending on the |
181 | * compiler and the achitecture. gcc2 always seems to do well :-). | 185 | * compiler and the architecture. gcc2 always seems to do well :-). |
182 | * Inspired by Dana How <how@isl.stanford.edu> | 186 | * Inspired by Dana How <how@isl.stanford.edu> |
183 | * DO NOT use the alternative version on machines with 8 byte longs. | 187 | * DO NOT use the alternative version on machines with 8 byte longs. |
184 | * It does not seem to work on the Alpha, even when DES_LONG is 4 | 188 | * It does not seem to work on the Alpha, even when DES_LONG is 4 |
185 | * bytes, probably an issue of accessing non-word aligned objects :-( */ | 189 | * bytes, probably an issue of accessing non-word aligned objects :-( */ |
186 | #ifdef DES_PTR | 190 | #ifdef DES_PTR |
187 | 191 | ||
188 | /* It recently occured to me that 0^0^0^0^0^0^0 == 0, so there | 192 | /* It recently occurred to me that 0^0^0^0^0^0^0 == 0, so there |
189 | * is no reason to not xor all the sub items together. This potentially | 193 | * is no reason to not xor all the sub items together. This potentially |
190 | * saves a register since things can be xored directly into L */ | 194 | * saves a register since things can be xored directly into L */ |
191 | 195 | ||