A redefinition of _XOPEN_SOURCE_EXTENDED here on AIX causes the
following error.

cc -I.. -I../.. -I../../include -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -O 
-DAIX -DB_ENDIAN -qmaxmem=16384   -c -o fips_rand.o fips_rand.c
"fips_rand.c", line 59.9: 1506-236 (W) Macro name _XOPEN_SOURCE_EXTENDED has 
been redefined.
"fips_rand.c", line 59.9: 1506-358 (I) "_XOPEN_SOURCE_EXTENDED" is defined on 
line 90 of /usr/include/standards.h.

A similar error results when compiling with GCC.

--------------- snip -------- snip ------------------
--- openssl-0.9.7e/fips/rand/fips_rand.c.original       Wed Nov 17 09:51:50 2004
+++ openssl-0.9.7e/fips/rand/fips_rand.c        Wed Nov 17 09:52:30 2004
@@ -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.  */
+#ifndef _XOPEN_SOURCE_EXTENDED
 #define _XOPEN_SOURCE_EXTENDED
+#endif
 
 #include <openssl/des.h>
 #include <openssl/rand.h>
--------------- snip -------- snip ------------------

Cheers,
Trent

-- 
Trent Mick
[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to