NIOCore: import the C library interfaces (#2158)

The socket address handling logic depends on multiple C library
interfaces which requires the import of the C library.  Add that on
Windows.

Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
Saleem Abdulrasool 2022-06-06 06:23:21 -07:00 committed by GitHub
parent 544742cb5e
commit b5a185b62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@
//===----------------------------------------------------------------------===//
#if os(Windows)
import ucrt
import let WinSDK.AF_INET
import let WinSDK.AF_INET6