From 48bf4aae24bf1f8fd63067f08ccd5f3ea827f478 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 22 Feb 2001 18:03:30 +0000 Subject: [PATCH] Define the right macro for Linux and other GNU-based systems to get a correct declaration of strdup() --- crypto/engine/enginetest.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- GitLab