Skip to content

Commit 8e5a6ce

Browse files
committed
Fix aws-lc-sys bindgen for Windows
1 parent f540887 commit 8e5a6ce

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/openssl/bio.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,11 @@
6868
#include <openssl/thread.h>
6969

7070
#if defined(OPENSSL_WINDOWS)
71-
#include <windows.h>
71+
// Due to name conflicts, we must prevent "wincrypt.h" from being included
72+
#define NOCRYPT
7273
#include <winsock2.h>
7374
#include <ws2ipdef.h>
74-
#if !defined(__MINGW32__)
75-
#include <afunix.h>
76-
#endif
75+
#undef NOCRYPT
7776
#else
7877
#include <netinet/in.h>
7978
#include <sys/socket.h>

0 commit comments

Comments
 (0)