summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2010-04-02 11:18:17 (GMT)
committerLarry Hastings <larry@hastings.org>2010-04-02 11:18:17 (GMT)
commit3b958e3b575dec4691419dc6488bb7be86afb409 (patch)
tree9f8906ca75bfaea9c162dceaf454cace0778fb2d /Modules/socketmodule.c
parent5ac006dfd3aacd50d43b8837ca71dff4288ce3df (diff)
downloadcpython-3b958e3b575dec4691419dc6488bb7be86afb409.zip
cpython-3b958e3b575dec4691419dc6488bb7be86afb409.tar.gz
cpython-3b958e3b575dec4691419dc6488bb7be86afb409.tar.bz2
Issue #8235: _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is
a socket option available on FreeBSD 7.1 and newer.
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 d44a691..901cb7d 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -4779,6 +4779,9 @@ init_socket(void)
#ifdef SO_TYPE
PyModule_AddIntConstant(m, "SO_TYPE", SO_TYPE);
#endif
+#ifdef SO_SETFIB
+ PyModule_AddIntConstant(m, "SO_SETFIB", SO_SETFIB);
+#endif
/* Maximum number of connections for "listen" */
#ifdef SOMAXCONN