From: Richard Levitte Date: Mon, 14 May 2001 12:23:28 +0000 (+0000) Subject: Make sure strdup() is properly declared. X-Git-Tag: OpenSSL_0_9_6c~182^2~161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=365359dd795f13dad335922081399877607082d2;p=oweals%2Fopenssl.git Make sure strdup() is properly declared. --- diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c index cf87f06a6a..c5d17042f9 100644 --- a/crypto/ui/ui_lib.c +++ b/crypto/ui/ui_lib.c @@ -56,6 +56,15 @@ * */ +#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