From: Richard Levitte Date: Mon, 1 Nov 2004 08:20:28 +0000 (+0000) Subject: Make sure _XOPEN_SOURCE_EXTENDED is correctly defined, and only if not X-Git-Tag: BEN_FIPS_TEST_6~63 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3955a76946e28bd11a1b3d5c64232697b034008e;p=oweals%2Fopenssl.git Make sure _XOPEN_SOURCE_EXTENDED is correctly defined, and only if not already defined. --- diff --git a/fips/rand/fingerprint.sha1 b/fips/rand/fingerprint.sha1 index 19221c2e21..0b1d91104f 100644 --- a/fips/rand/fingerprint.sha1 +++ b/fips/rand/fingerprint.sha1 @@ -1,2 +1,2 @@ -HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2 +HMAC-SHA1(fips_rand.c)= 5dc4aa11c0377a049bee01d427e5b0bc3dd9f10f HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791 diff --git a/fips/rand/fips_rand.c b/fips/rand/fips_rand.c index b78042b1dd..cc2f12deb9 100644 --- a/fips/rand/fips_rand.c +++ b/fips/rand/fips_rand.c @@ -56,7 +56,9 @@ /* 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 +#ifndef _XOPEN_SOURCE_EXTENDED +#define _XOPEN_SOURCE_EXTENDED 1 +#endif #include #include