From 3955a76946e28bd11a1b3d5c64232697b034008e Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 1 Nov 2004 08:20:28 +0000 Subject: [PATCH] Make sure _XOPEN_SOURCE_EXTENDED is correctly defined, and only if not already defined. --- fips/rand/fingerprint.sha1 | 2 +- fips/rand/fips_rand.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.25.1