Make sure _XOPEN_SOURCE_EXTENDED is correctly defined, and only if not

already defined.
This commit is contained in:
Richard Levitte 2004-11-01 08:20:28 +00:00
parent ee478901b0
commit 3955a76946
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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 <openssl/des.h>
#include <openssl/rand.h>