diff options
author | Richard Levitte <levitte@openssl.org> | 2001-02-22 19:03:30 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-02-22 19:03:30 +0100 |
commit | 48bf4aae24bf1f8fd63067f08ccd5f3ea827f478 (patch) | |
tree | e610d575af40b3b42178cddff4f13c87b09a48b9 /crypto/engine/enginetest.c | |
parent | e_os.h defines Getenv() (diff) | |
download | openssl-48bf4aae24bf1f8fd63067f08ccd5f3ea827f478.tar.xz openssl-48bf4aae24bf1f8fd63067f08ccd5f3ea827f478.zip |
Define the right macro for Linux and other GNU-based systems to get a correct declaration of strdup()
Diffstat (limited to '')
-rw-r--r-- | crypto/engine/enginetest.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdio.h> #include <openssl/e_os2.h> +/* 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 <string.h> #include <openssl/engine.h> #include <openssl/err.h> |