With DEC C in ANSI C mode, we need to define _XOPEN_SOURCE_EXTENDED to
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Aug 2004 10:04:13 +0000 (10:04 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 10 Aug 2004 10:04:13 +0000 (10:04 +0000)
get struct timeval and gettimeofday().

fips/rand/fingerprint.sha1
fips/rand/fips_rand.c

index fe576ad6ed56c0d9c32e723578c42a78fadc349d..19221c2e212ca95c74d5ca9eefb033108088c41b 100644 (file)
@@ -1,2 +1,2 @@
-HMAC-SHA1(fips_rand.c)= 9bf5f5a42a150f5499071c34addab1f351f611ce
+HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2
 HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791
index e4607c960975fb10075d83e645011e39f22e4b86..b78042b1dd1a0beae63396ce13cc7b9870a33590 100644 (file)
  * 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 <openssl/des.h>
 #include <openssl/rand.h>
 #include <openssl/err.h>
 #include <openssl/fips_rand.h>
-#include "e_os.h"
 #ifndef OPENSSL_SYS_WIN32
 #include <sys/time.h>
 #endif