summaryrefslogtreecommitdiffstats
path: root/crypto/ui
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-05-14 12:23:28 +0000
committerRichard Levitte <levitte@openssl.org>2001-05-14 12:23:28 +0000
commit365359dd795f13dad335922081399877607082d2 (patch)
treecd92ad7204487652cce964c7461abf19204a06a0 /crypto/ui
parent2757be06de4e03153a81c0042fe78da650f95983 (diff)
Make sure strdup() is properly declared.
Diffstat (limited to 'crypto/ui')
-rw-r--r--crypto/ui/ui_lib.c9
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>