summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-05-03 18:33:11 +0100
committerGitHub <noreply@github.com>2022-05-03 11:33:11 -0600
commitd5dfcd4489e25c1b6e985fb6b8a700c8a49c68df (patch)
treedf730c6cd57ba288e69781ca152cad89e69559e9 /Modules/socketmodule.c
parentb295a92c50b128e494f47c28f12b8e9eac2927ea (diff)
downloadcpython-git-d5dfcd4489e25c1b6e985fb6b8a700c8a49c68df.tar.gz
bpo-46696: Add socket.SO_INCOMING_CPU constant (#31237)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 9ecabaf973..c650b25c09 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -7505,6 +7505,9 @@ PyInit__socket(void)
#ifdef SO_EXCLUSIVEADDRUSE
PyModule_AddIntMacro(m, SO_EXCLUSIVEADDRUSE);
#endif
+#ifdef SO_INCOMING_CPU
+ PyModule_AddIntMacro(m, SO_INCOMING_CPU);
+#endif
#ifdef SO_KEEPALIVE
PyModule_AddIntMacro(m, SO_KEEPALIVE);