mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Re-export SYSPROTO_CONTROL and PF_SYSTEM in socket on macos (#10814)
This commit is contained in:
@@ -129,7 +129,9 @@ if sys.platform != "darwin" or sys.version_info >= (3, 9):
|
||||
IPV6_RTHDR as IPV6_RTHDR,
|
||||
)
|
||||
|
||||
if sys.platform != "darwin":
|
||||
if sys.platform == "darwin":
|
||||
from _socket import PF_SYSTEM as PF_SYSTEM, SYSPROTO_CONTROL as SYSPROTO_CONTROL
|
||||
else:
|
||||
from _socket import SO_EXCLUSIVEADDRUSE as SO_EXCLUSIVEADDRUSE
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
|
||||
Reference in New Issue
Block a user