shithub: drawterm

Download patch

ref: 19fc221351f4f1d159a7a5e2b6ea0d3bd2973bf3
parent: 831505184ff4d34508216418ecb6ec0db77f5d54
author: aiju <devnull@localhost>
date: Tue Apr 17 05:45:25 EDT 2018

windows: PADDRINFOA is not always available

--- a/kern/devip-win32.c	Tue Apr 17 05:45:02 2018
+++ b/kern/devip-win32.c	Tue Apr 17 05:45:25 2018
@@ -1,3 +1,4 @@
+#define  _WIN32_WINNT 0x0501
 #include <winsock2.h>
 #include <windows.h>
 #include <ws2tcpip.h>
@@ -215,7 +216,7 @@
 so_gethostbyname(char *host, char **hostv, int n)
 {
 	char buf[INET6_ADDRSTRLEN];
-	PADDRINFOA r, p;
+	struct addrinfo *r, *p;
 	DWORD l;
 	int i;