summaryrefslogtreecommitdiffstats
path: root/crypto/engine
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-02-22 18:03:30 +0000
committerRichard Levitte <levitte@openssl.org>2001-02-22 18:03:30 +0000
commit48bf4aae24bf1f8fd63067f08ccd5f3ea827f478 (patch)
treee610d575af40b3b42178cddff4f13c87b09a48b9 /crypto/engine
parent623157608873d71db884c37e0e95bc180f2ed713 (diff)
Define the right macro for Linux and other GNU-based systems to get a correct declaration of strdup()
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/enginetest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/engine/enginetest.c b/crypto/engine/enginetest.c
index 6f18ebd962..f152f642f1 100644
--- 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>