Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 30630:9200712d31e7 legacy-trunk
Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 03 Oct 2003 13:56:20 +0000 |
| parents | 7f5489184d94 |
| children | 8630dd8b5cb4 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Fri Oct 03 13:47:44 2003 +0000 +++ b/Modules/socketmodule.c Fri Oct 03 13:56:20 2003 +0000 @@ -3749,6 +3749,9 @@ #ifdef IPPROTO_IPV4 PyModule_AddIntConstant(m, "IPPROTO_IPV4", IPPROTO_IPV4); #endif +#ifdef IPPROTO_IPV6 + PyModule_AddIntConstant(m, "IPPROTO_IPV6", IPPROTO_IPV6); +#endif #ifdef IPPROTO_IPIP PyModule_AddIntConstant(m, "IPPROTO_IPIP", IPPROTO_IPIP); #endif
