diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-04-02 11:57:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 11:57:27 +0200 |
commit | 4b26e365aed364a62dd1535ee04fea9f458afe81 (patch) | |
tree | 4ac1809bc7723d9893bbf875fb8c8bff29f5fb2f /third-party/patches/luv-Add-missing-definitions-for-MinGW.patch | |
parent | 9b7ce004867e0ac3692afbef0cc15e2474242057 (diff) | |
parent | 1b898d7af5c756db1b0b1d7a6f35d01de6f1f8ae (diff) | |
download | rneovim-4b26e365aed364a62dd1535ee04fea9f458afe81.tar.gz rneovim-4b26e365aed364a62dd1535ee04fea9f458afe81.tar.bz2 rneovim-4b26e365aed364a62dd1535ee04fea9f458afe81.zip |
Merge #8208 'Clean up dependency patches'
closes #6659
Diffstat (limited to 'third-party/patches/luv-Add-missing-definitions-for-MinGW.patch')
-rw-r--r-- | third-party/patches/luv-Add-missing-definitions-for-MinGW.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third-party/patches/luv-Add-missing-definitions-for-MinGW.patch b/third-party/patches/luv-Add-missing-definitions-for-MinGW.patch new file mode 100644 index 0000000000..8954ae21c3 --- /dev/null +++ b/third-party/patches/luv-Add-missing-definitions-for-MinGW.patch @@ -0,0 +1,24 @@ +diff --git a/src/dns.c b/src/dns.c +index 8634157..5f36625 100644 +--- a/src/dns.c ++++ b/src/dns.c +@@ -20,6 +20,19 @@ + #include <sys/types.h> + #include <sys/socket.h> + #include <netdb.h> ++#elif __MINGW32__ ++# ifndef AI_NUMERICSERV ++# define AI_NUMERICSERV 0x0008 ++# endif ++# ifndef AI_ALL ++# define AI_ALL 0x00000100 ++# endif ++# ifndef AI_ADDRCONFIG ++# define AI_ADDRCONFIG 0x00000400 ++# endif ++# ifndef AI_V4MAPPED ++# define AI_V4MAPPED 0x00000800 ++# endif + #endif + + static void luv_pushaddrinfo(lua_State* L, struct addrinfo* res) { |