Commit fb757fea authored by Youness Alaoui's avatar Youness Alaoui

Fix inclusion of openssl/rand.h on windows which does not need winsock.h to be included with it

parent c1f4fcb3
...@@ -37,6 +37,13 @@ ...@@ -37,6 +37,13 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef _WIN32
/* This is needed because openssl/rand.h will include windows.h which will
include winsock.h if WIN32_LEAN_AND_MEAN is not defined.. and it causes
some compilation issues with ws2def.h */
#define WIN32_LEAN_AND_MEAN
#endif
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include <openssl/rand.h> #include <openssl/rand.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment