From 365359dd795f13dad335922081399877607082d2 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 14 May 2001 12:23:28 +0000 Subject: [PATCH] Make sure strdup() is properly declared. --- crypto/ui/ui_lib.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.25.1