diff options
author | Fedora Python maintainers <python-devel@lists.fedoraproject.org> | 2020-07-15 13:17:24 (GMT) |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2020-09-29 13:31:36 (GMT) |
commit | cf7e20128b6d8401a9da5352b390dc24f8b619aa (patch) | |
tree | 05e69bfa55c09b213072b06022c989d056735617 | |
parent | 0af64d58d2891e6601f1c90753c814b0ce0ce317 (diff) | |
download | cpython-cf7e20128b6d8401a9da5352b390dc24f8b619aa.zip cpython-cf7e20128b6d8401a9da5352b390dc24f8b619aa.tar.gz cpython-cf7e20128b6d8401a9da5352b390dc24f8b619aa.tar.bz2 |
python-2.7rc1-socketmodule-constants2.patch
00014 #
Add various constants to the socketmodule (rhbz#436560):
TODO: these patches were added in 2.5.1-22 and 2.5.1-24 but appear not to
have been sent upstream yet:
-rw-r--r-- | Modules/socketmodule.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e0ac9a3..0eec3ac 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -5449,6 +5449,15 @@ init_socket(void) #ifdef TCP_QUICKACK PyModule_AddIntConstant(m, "TCP_QUICKACK", TCP_QUICKACK); #endif +#ifdef TCP_CONGESTION + PyModule_AddIntConstant(m, "TCP_CONGESTION", TCP_CONGESTION); +#endif +#ifdef TCP_MD5SIG + PyModule_AddIntConstant(m, "TCP_MD5SIG", TCP_MD5SIG); +#endif +#ifdef TCP_MD5SIG_MAXKEYLEN + PyModule_AddIntConstant(m, "TCP_MD5SIG_MAXKEYLEN", TCP_MD5SIG_MAXKEYLEN); +#endif /* IPX options */ |