summaryrefslogtreecommitdiff
path: root/crypto/conf/conf_sap.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-11-11 22:23:12 +0100
committerAndy Polyakov <appro@openssl.org>2017-11-13 10:58:57 +0100
commit3a63c0edab842af3e84ef1cad2b4eb701eece3e1 (patch)
treec45bf7fb2f69874b2779b33e5597a59bbc92e648 /crypto/conf/conf_sap.c
parent802127e8fc07cbef499b645e7e1ae48ce3ed981c (diff)
downloadopenssl-new-3a63c0edab842af3e84ef1cad2b4eb701eece3e1.tar.gz
Resolve warnings in VC-WIN32 build, which allows to add /WX.
It's argued that /WX allows to keep better focus on new code, which motivates its comeback... Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4721)
Diffstat (limited to 'crypto/conf/conf_sap.c')
-rw-r--r--crypto/conf/conf_sap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c
index 0815109d81..3d2e065e5b 100644
--- a/crypto/conf/conf_sap.c
+++ b/crypto/conf/conf_sap.c
@@ -15,6 +15,10 @@
#include <openssl/asn1.h>
#include <openssl/engine.h>
+#ifdef _WIN32
+# define strdup _strdup
+#endif
+
/*
* This is the automatic configuration loader: it is called automatically by
* OpenSSL when any of a number of standard initialisation functions are