From: Richard Levitte Date: Tue, 10 Aug 2004 10:04:13 +0000 (+0000) Subject: With DEC C in ANSI C mode, we need to define _XOPEN_SOURCE_EXTENDED to X-Git-Tag: OpenSSL_0_9_7e~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fa9664f5eea2f610ac2a9b49da4e79396d26a74;p=openssl With DEC C in ANSI C mode, we need to define _XOPEN_SOURCE_EXTENDED to get struct timeval and gettimeofday(). --- diff --git a/fips/rand/fingerprint.sha1 b/fips/rand/fingerprint.sha1 index fe576ad6ed..19221c2e21 100644 --- a/fips/rand/fingerprint.sha1 +++ b/fips/rand/fingerprint.sha1 @@ -1,2 +1,2 @@ -HMAC-SHA1(fips_rand.c)= 9bf5f5a42a150f5499071c34addab1f351f611ce +HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2 HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791 diff --git a/fips/rand/fips_rand.c b/fips/rand/fips_rand.c index e4607c9609..b78042b1dd 100644 --- a/fips/rand/fips_rand.c +++ b/fips/rand/fips_rand.c @@ -51,11 +51,17 @@ * This is a FIPS approved PRNG, ANSI X9.31 A.2.4. */ +#include "e_os.h" + +/* If we don't define _XOPEN_SOURCE_EXTENDED, struct timeval won't + be defined and gettimeofday() won't be declared with strict compilers + like DEC C in ANSI C mode. */ +#define _XOPEN_SOURCE_EXTENDED + #include #include #include #include -#include "e_os.h" #ifndef OPENSSL_SYS_WIN32 #include #endif