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:
@@ -1,2 +1,2 @@
|
|||||||
HMAC-SHA1(fips_rand.c)= 9bf5f5a42a150f5499071c34addab1f351f611ce
|
HMAC-SHA1(fips_rand.c)= 204f93068be19786849b817d8f33d500e7cef1d2
|
||||||
HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791
|
HMAC-SHA1(fips_rand.h)= 0567b1fe9b0efe034a537f335659b0b681809791
|
||||||
|
|||||||
@@ -51,11 +51,17 @@
|
|||||||
* This is a FIPS approved PRNG, ANSI X9.31 A.2.4.
|
* 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/des.h>
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/fips_rand.h>
|
#include <openssl/fips_rand.h>
|
||||||
#include "e_os.h"
|
|
||||||
#ifndef OPENSSL_SYS_WIN32
|
#ifndef OPENSSL_SYS_WIN32
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user