diff options
| author | beck <> | 2014-04-18 21:11:00 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-18 21:11:00 +0000 |
| commit | 3003b76c7c4042048bfe7a344d529ec0f03dd638 (patch) | |
| tree | 08077f4870903dd9ea491499c1d25a0a6693a465 /src/lib/libcrypto/ripemd | |
| parent | a505a455abe7e50200002d907071ceffe1e3eb85 (diff) | |
| download | openbsd-3003b76c7c4042048bfe7a344d529ec0f03dd638.tar.gz openbsd-3003b76c7c4042048bfe7a344d529ec0f03dd638.tar.bz2 openbsd-3003b76c7c4042048bfe7a344d529ec0f03dd638.zip | |
Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developers
they had resorted to manually protyping read(2) instead of incredible amount of
preprocessor wizardry needed to find the ever illusive <unistd.h>. Let's just
include <unistd.h> and we don't need to do this.. While we're at it flense
out _OSD_POSIX and __DGJPP__ cruft.
ok krw@
Diffstat (limited to 'src/lib/libcrypto/ripemd')
| -rw-r--r-- | src/lib/libcrypto/ripemd/rmd160.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ripemd/rmd160.c b/src/lib/libcrypto/ripemd/rmd160.c index b0ec574498..d0bc59d03c 100644 --- a/src/lib/libcrypto/ripemd/rmd160.c +++ b/src/lib/libcrypto/ripemd/rmd160.c | |||
| @@ -56,6 +56,7 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <unistd.h> | ||
| 59 | #include <stdio.h> | 60 | #include <stdio.h> |
| 60 | #include <stdlib.h> | 61 | #include <stdlib.h> |
| 61 | #include <openssl/ripemd.h> | 62 | #include <openssl/ripemd.h> |
| @@ -64,9 +65,6 @@ | |||
| 64 | 65 | ||
| 65 | void do_fp(FILE *f); | 66 | void do_fp(FILE *f); |
| 66 | void pt(unsigned char *md); | 67 | void pt(unsigned char *md); |
| 67 | #if !defined(_OSD_POSIX) && !defined(__DJGPP__) | ||
| 68 | int read(int, void *, unsigned int); | ||
| 69 | #endif | ||
| 70 | 68 | ||
| 71 | int main(int argc, char **argv) | 69 | int main(int argc, char **argv) |
| 72 | { | 70 | { |
