With DEC C in ANSI C mode, we need to define _XOPEN_SOURCE_EXTENDED to

get struct timeval and gettimeofday().
This commit is contained in:
Richard Levitte
2004-08-10 10:04:13 +00:00
parent 483b312391
commit 4fa9664f5e
2 changed files with 8 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
HMAC-SHA1(fips_rand.c)= 9bf5f5a42a150f5499071c34addab1f351f611ce
HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2
HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791

View File

@@ -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 <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