aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-09-02 03:58:42 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-09-02 04:09:54 +1000
commitc72e19728a32af131d63ead8b0ad04e7c2f061d2 (patch)
tree43a0702f0eaa6aa1e3ae31df106ec84f7149ec27
parent66acd9c9075bdb9160cf0e30f7128e62bf576f5f (diff)
downloadluaossl-c72e19728a32af131d63ead8b0ad04e7c2f061d2.tar.gz
luaossl-c72e19728a32af131d63ead8b0ad04e7c2f061d2.tar.bz2
luaossl-c72e19728a32af131d63ead8b0ad04e7c2f061d2.zip
Windows wants inaddr.h included after winsock2.h
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index ede55aa..10cb1f1 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -38,8 +38,8 @@
#include <sys/stat.h> /* struct stat stat(2) */
#ifdef _WIN32
-#include <inaddr.h> /* struct in_addr, struct in6_addr */
#include <winsock2.h> /* AF_INET, AF_INET6 */
+#include <inaddr.h> /* struct in_addr, struct in6_addr */
#include <ws2tcpip.h> /* inet_pton */
#pragma comment(lib, "ws2_32.lib")
#include <wincrypt.h> /* CryptAcquireContext(), CryptGenRandom(), CryptReleaseContext() */