summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2014-09-18 22:18:46 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2014-09-18 22:18:46 (GMT)
commitea07eb9469d1c93a26560a00f6e4ca45d4c1ecdb (patch)
tree5dcb2e15a000c5a17d5c78bfa97e120a4edcde86 /Modules/socketmodule.c
parentc58c7d487b7c5738352d92fab74fa27d951ee574 (diff)
downloadcpython-ea07eb9469d1c93a26560a00f6e4ca45d4c1ecdb.zip
cpython-ea07eb9469d1c93a26560a00f6e4ca45d4c1ecdb.tar.gz
cpython-ea07eb9469d1c93a26560a00f6e4ca45d4c1ecdb.tar.bz2
Issue #22378: socket module: add SO_MARK.
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 7738c30..cb29821 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -6248,6 +6248,9 @@ PyInit__socket(void)
#ifdef SO_PRIORITY
PyModule_AddIntMacro(m, SO_PRIORITY);
#endif
+#ifdef SO_MARK
+ PyModule_AddIntMacro(m, SO_MARK);
+#endif
/* Maximum number of connections for "listen" */
#ifdef SOMAXCONN