summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Sauthoff <mail@georg.so>2021-06-20 20:08:07 (GMT)
committerGitHub <noreply@github.com>2021-06-20 20:08:07 (GMT)
commita317778fd58b1c6b250feffbdb4ecf15e293ef48 (patch)
treed9c3a32f3633994602750c43b4a88f9d97c88b74 /Modules
parent7265b277fa00337dfe4ea202c7f666dceb87a0b3 (diff)
downloadcpython-a317778fd58b1c6b250feffbdb4ecf15e293ef48.zip
cpython-a317778fd58b1c6b250feffbdb4ecf15e293ef48.tar.gz
cpython-a317778fd58b1c6b250feffbdb4ecf15e293ef48.tar.bz2
bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 79559c0..142cc7c 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