Update for MINGW windows build (#1232)

Add missing header stdlib.h, iphlpapi.h
Force type casting for CryptGenRandom, setsockopt, strncpy
ifdef for getenv proto type
This commit is contained in:
thomasysliu
2026-03-02 22:37:26 +01:00
committed by GitHub
parent 23e5160fc8
commit 682555ffde
7 changed files with 10 additions and 5 deletions
+1
View File
@@ -41,6 +41,7 @@
#ifdef _WIN32
#include <winsock.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#else
#include <arpa/inet.h> // for inet_pton
#include <net/if.h> // for if_indextoname