summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2010-04-02 11:47:10 (GMT)
committerLarry Hastings <larry@hastings.org>2010-04-02 11:47:10 (GMT)
commitf0f37950689a80ac9cb72bb04a5b2ac5ae485b2b (patch)
tree8463147da013e3450141d581ff55268aa1fde7d4 /Modules/socketmodule.c
parentb5c2e6a33e2a65edccf27a5e3741ce0bcd86562c (diff)
downloadcpython-f0f37950689a80ac9cb72bb04a5b2ac5ae485b2b.zip
cpython-f0f37950689a80ac9cb72bb04a5b2ac5ae485b2b.tar.gz
cpython-f0f37950689a80ac9cb72bb04a5b2ac5ae485b2b.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 e65303b..9dade1d 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -4551,6 +4551,9 @@ PyInit__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