Skip to content

Commit cde0c32

Browse files
committed
Windows: add some WinSock2 constants
This is the bare minimum of the WinSock2 constants that are needed for the Foundation port to Windows which uses the socket APIs for `-[NSTask run]` internal signalling.
1 parent 7c65568 commit cde0c32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ public let INVALID_HANDLE_VALUE: HANDLE = HANDLE(bitPattern: -1)!
3737
public let FOF_NO_UI: FILEOP_FLAGS =
3838
FILEOP_FLAGS(FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)
3939

40+
// WinSock2.h
41+
public let INVALID_SOCKET: SOCKET = SOCKET(bitPattern: -1)
42+
public let FIONBIO: Int32 = 0x4667e
43+

0 commit comments

Comments
 (0)