diff options
author | Richard Levitte <levitte@openssl.org> | 2001-05-14 12:23:28 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-05-14 12:23:28 +0000 |
commit | 365359dd795f13dad335922081399877607082d2 (patch) | |
tree | cd92ad7204487652cce964c7461abf19204a06a0 /crypto/ui/ui_lib.c | |
parent | 2757be06de4e03153a81c0042fe78da650f95983 (diff) | |
download | openssl-365359dd795f13dad335922081399877607082d2.tar.gz |
Make sure strdup() is properly declared.
Diffstat (limited to 'crypto/ui/ui_lib.c')
-rw-r--r-- | crypto/ui/ui_lib.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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/ui.h> |