projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2757be0
)
Make sure strdup() is properly declared.
author
Richard Levitte
<levitte@openssl.org>
Mon, 14 May 2001 12:23:28 +0000
(12:23 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 14 May 2001 12:23:28 +0000
(12:23 +0000)
crypto/ui/ui_lib.c
patch
|
blob
|
history
diff --git
a/crypto/ui/ui_lib.c
b/crypto/ui/ui_lib.c
index cf87f06a6ae308274ac267822c4b8887880b6a15..c5d17042f9f9f3faebc8f8cfb7bd730a25c9c70f 100644
(file)
--- 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>