diff options
author | Rui Cunha <rpmonteiro24@hotmail.com> | 2021-03-20 22:04:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 22:04:56 (GMT) |
commit | b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77 (patch) | |
tree | 16db8b9d1324c2cc442cb3d3083144de87b8205b /Modules/socketmodule.c | |
parent | 66c8adfa27aeea004657ef29b6db4e4c360ad611 (diff) | |
download | cpython-b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77.zip cpython-b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77.tar.gz cpython-b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77.tar.bz2 |
bpo-43571: Add IPPROTO_MPTCP macro (GH-24946)
Add IPPROTO_MPTCP constant when defined in the system headers.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 0f56d94..23aab59 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -7927,6 +7927,9 @@ PyInit__socket(void) #ifdef IPPROTO_BIP PyModule_AddIntMacro(m, IPPROTO_BIP); #endif +#ifdef IPPROTO_MPTCP + PyModule_AddIntMacro(m, IPPROTO_MPTCP); +#endif /**/ #ifdef IPPROTO_RAW PyModule_AddIntMacro(m, IPPROTO_RAW); |