瀏覽代碼

Merge pull request #7006 from vnen/fix-ipv6-uwp

Fix IPv6 linking for UWP
George Marques 8 年之前
父節點
當前提交
3958171a7a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      drivers/unix/socket_helpers.h

+ 4 - 0
drivers/unix/socket_helpers.h

@@ -10,6 +10,10 @@
  #endif
  #endif
 #endif
 #endif
 
 
+#ifdef WINRT_ENABLED
+#define in6addr_any IN6ADDR_ANY_INIT
+#endif
+
 // helpers for sockaddr -> IP_Address and back, should work for posix and winsock. All implementations should use this
 // helpers for sockaddr -> IP_Address and back, should work for posix and winsock. All implementations should use this
 
 
 static size_t _set_sockaddr(struct sockaddr_storage* p_addr, const IP_Address& p_ip, int p_port) {
 static size_t _set_sockaddr(struct sockaddr_storage* p_addr, const IP_Address& p_ip, int p_port) {