get struct timeval and gettimeofday().
-HMAC-SHA1(fips_rand.c)= 9bf5f5a42a150f5499071c34addab1f351f611ce
+HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2
HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791
* 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