[Python-checkins]
python/dist/src/Modules socketmodule.c, 1.271.6.5, 1.271.6.6
aimacintyre at users.sourceforge.net
aimacintyre at users.sourceforge.net
Sun Apr 4 03:19:30 EDT 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32745
Modified Files:
Tag: release23-maint
socketmodule.c
Log Message:
Backport to 2.3 to support Zope 2.7 on OS/2:
OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/. Unlike Unix systems, this
file never exists in the file system.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.271.6.5
retrieving revision 1.271.6.6
diff -C2 -d -r1.271.6.5 -r1.271.6.6
*** socketmodule.c 20 Oct 2003 14:34:47 -0000 1.271.6.5
--- socketmodule.c 4 Apr 2004 07:19:27 -0000 1.271.6.6
***************
*** 859,863 ****
}
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
case AF_UNIX:
{
--- 859,863 ----
}
! #if defined(AF_UNIX)
case AF_UNIX:
{
***************
*** 933,937 ****
switch (s->sock_family) {
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
case AF_UNIX:
{
--- 933,937 ----
switch (s->sock_family) {
! #if defined(AF_UNIX)
case AF_UNIX:
{
***************
*** 1064,1068 ****
switch (s->sock_family) {
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
case AF_UNIX:
{
--- 1064,1068 ----
switch (s->sock_family) {
! #if defined(AF_UNIX)
case AF_UNIX:
{
***************
*** 3542,3546 ****
PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
#endif /* AF_INET6 */
! #if defined(AF_UNIX) && !defined(PYOS_OS2)
PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
#endif /* AF_UNIX */
--- 3542,3546 ----
PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
#endif /* AF_INET6 */
! #if defined(AF_UNIX)
PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
#endif /* AF_UNIX */
More information about the Python-checkins
mailing list