commit | b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77 | [log] [tgz] |
---|---|---|
author | Rui Cunha <rpmonteiro24@hotmail.com> | Sat Mar 20 22:04:56 2021 +0000 |
committer | GitHub <noreply@github.com> | Sat Mar 20 15:04:56 2021 -0700 |
tree | 16db8b9d1324c2cc442cb3d3083144de87b8205b | |
parent | 66c8adfa27aeea004657ef29b6db4e4c360ad611 [diff] [blame] |
bpo-43571: Add IPPROTO_MPTCP macro (GH-24946) Add IPPROTO_MPTCP constant when defined in the system headers.
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);