summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--librabbitmq/amqp_openssl_hostname_validation.c4
-rw-r--r--librabbitmq/amqp_openssl_hostname_validation.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/librabbitmq/amqp_openssl_hostname_validation.c b/librabbitmq/amqp_openssl_hostname_validation.c
index 133d73c..01cf740 100644
--- a/librabbitmq/amqp_openssl_hostname_validation.c
+++ b/librabbitmq/amqp_openssl_hostname_validation.c
@@ -27,6 +27,10 @@
* https://wiki.openssl.org/index.php/Hostname_validation
*/
+#if defined(_WIN32)
+#define WIN32_LEAN_AND_MEAN
+#endif
+
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
diff --git a/librabbitmq/amqp_openssl_hostname_validation.h b/librabbitmq/amqp_openssl_hostname_validation.h
index c994871..3f353e3 100644
--- a/librabbitmq/amqp_openssl_hostname_validation.h
+++ b/librabbitmq/amqp_openssl_hostname_validation.h
@@ -30,7 +30,7 @@
* https://wiki.openssl.org/index.php/Hostname_validation
*/
-#include <openssl/x509v3.h>
+#include <openssl/ossl_typ.h>
typedef enum {
AMQP_HVR_MATCH_FOUND,