summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>