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:
6231576
)
Define the right macro for Linux and other GNU-based systems to get a correct declara...
author
Richard Levitte
<levitte@openssl.org>
Thu, 22 Feb 2001 18:03:30 +0000
(18:03 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 22 Feb 2001 18:03:30 +0000
(18:03 +0000)
crypto/engine/enginetest.c
patch
|
blob
|
history
diff --git
a/crypto/engine/enginetest.c
b/crypto/engine/enginetest.c
index 6f18ebd9623272cecb31070d47db34866e85c3fc..f152f642f130cac31961610fd7e1a8c90d75b53c 100644
(file)
--- 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>