summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-06-20 13:36:21 -0700
committerGitHub <noreply@github.com>2021-06-20 13:36:21 -0700
commit28fe0159f59a761bf52c1999c8f7cb12d0d12562 (patch)
tree48d763bfc8f243c8ffaa80246534c66f3f159f23 /Modules/socketmodule.c
parent5fbccb763ce540c0d07be86660e0357bffc69d76 (diff)
downloadcpython-git-28fe0159f59a761bf52c1999c8f7cb12d0d12562.tar.gz
bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit a317778fd58b1c6b250feffbdb4ecf15e293ef48) Co-authored-by: Georg Sauthoff <mail@georg.so>
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 79559c04d5..142cc7c8a7 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -8024,6 +8024,9 @@ PyInit__socket(void)
#ifdef IP_RECVRETOPTS
PyModule_AddIntMacro(m, IP_RECVRETOPTS);
#endif
+#ifdef IP_RECVTOS
+ PyModule_AddIntMacro(m, IP_RECVTOS);
+#endif
#ifdef IP_RECVDSTADDR
PyModule_AddIntMacro(m, IP_RECVDSTADDR);
#endif