Skip to content

Commit 73aaf5b

Browse files
committed
Add os platform conditions
1 parent 3ce216e commit 73aaf5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/selector_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
_HAS_SENDMSG = hasattr(socket.socket, 'sendmsg')
3434

35-
if _HAS_SENDMSG:
35+
if _HAS_SENDMSG and os.name == 'posix':
3636
try:
3737
SC_IOV_MAX = os.sysconf('SC_IOV_MAX')
3838
except OSError:

0 commit comments

Comments
 (0)