Re-export SYSPROTO_CONTROL and PF_SYSTEM in socket on macos (#10814)

This commit is contained in:
Nikita Sobolev authored and GitHub committed 2023-10-01 15:38:44 +01:00
1 parent 1163a5ecfb
commit bd4462cc62
2 files changed
+3 -3

No files matched your search

+3 -1
View File
@@ -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):