From: Bodo Möller Date: Wed, 5 Sep 2001 14:40:05 +0000 (+0000) Subject: Solaris does not declare 'strdup' if _XOPEN_SOURCE is X-Git-Tag: OpenSSL_0_9_6c~123^2~14 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=7ba45bf133b4f1af870b8b0fd87938d377acb5a4;ds=inline Solaris does not declare 'strdup' if _XOPEN_SOURCE is defined. (Preprocessor symbols such as _POSIX_C_SOURCE or _XOPEN_SOURCE are supposed to disable anything not allowed by the respective specification; I'm not sure why 'strdup' would be considered an outlaw though.) --- diff --git a/crypto/engine/enginetest.c b/crypto/engine/enginetest.c index 06a439b4c0..3a98eff463 100644 --- a/crypto/engine/enginetest.c +++ b/crypto/engine/enginetest.c @@ -63,7 +63,7 @@ # define _XOPEN_SOURCE_EXTENDED #endif #ifdef OPENSSL_SYS_UNIX -# define _XOPEN_SOURCE +/* # define _XOPEN_SOURCE */ # define _XOPEN_SOURCE_EXTENDED /* For Linux and probably anything GNU */ #endif #include