-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
It handles most with a specialized macro:
cpython/Modules/socketmodule.c
Lines 7716 to 7722 in 81eba76
| /* Kernel event messages */ | |
| #ifdef PF_SYSTEM | |
| ADD_INT_MACRO(m, PF_SYSTEM); | |
| #endif | |
| #ifdef AF_SYSTEM | |
| ADD_INT_MACRO(m, AF_SYSTEM); | |
| #endif |
but not these ones:
cpython/Modules/socketmodule.c
Lines 7724 to 7731 in 81eba76
| /* FreeBSD divert(4) */ | |
| #ifdef PF_DIVERT | |
| PyModule_AddIntMacro(m, PF_DIVERT); | |
| #endif | |
| #ifdef AF_DIVERT | |
| PyModule_AddIntMacro(m, AF_DIVERT); | |
| #endif | |
Introduced in #96536
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error