From: Richard Levitte Date: Thu, 22 Feb 2001 18:03:30 +0000 (+0000) Subject: Define the right macro for Linux and other GNU-based systems to get a correct declara... X-Git-Tag: OpenSSL_0_9_6a-beta1~23^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48bf4aae24bf1f8fd63067f08ccd5f3ea827f478;p=oweals%2Fopenssl.git Define the right macro for Linux and other GNU-based systems to get a correct declaration of strdup() --- diff --git a/crypto/engine/enginetest.c b/crypto/engine/enginetest.c index 6f18ebd962..f152f642f1 100644 --- a/crypto/engine/enginetest.c +++ b/crypto/engine/enginetest.c @@ -58,9 +58,14 @@ #include #include +/* The following defines enable the declaration of strdup(), which is an + extended function according to X/Open. */ #ifdef OPENSSL_SYS_VMS_DECC # define _XOPEN_SOURCE_EXTENDED #endif +#ifdef OPENSSL_SYS_UNIX +# define __USE_XOPEN_EXTENDED /* For Linux and probably anything GNU */ +#endif #include #include #include