diff Modules/socketmodule.c @ 31869:5a36e4d5aa8f 2.3

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.
author Andrew MacIntyre <andymac@bullseye.apana.org.au>
date Sun, 04 Apr 2004 07:19:27 +0000
parents 6f15e73b59f2
children 64fcff121f7b
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sun Apr 04 07:17:05 2004 +0000
+++ b/Modules/socketmodule.c	Sun Apr 04 07:19:27 2004 +0000
@@ -858,7 +858,7 @@
 		return ret;
 	}
 
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
 	case AF_UNIX:
 	{
 		struct sockaddr_un *a = (struct sockaddr_un *) addr;
@@ -932,7 +932,7 @@
 {
 	switch (s->sock_family) {
 
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
 	case AF_UNIX:
 	{
 		struct sockaddr_un* addr;
@@ -1063,7 +1063,7 @@
 {
 	switch (s->sock_family) {
 
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
 	case AF_UNIX:
 	{
 		*len_ret = sizeof (struct sockaddr_un);
@@ -3541,7 +3541,7 @@
 #ifdef AF_INET6
 	PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
 #endif /* AF_INET6 */
-#if defined(AF_UNIX) && !defined(PYOS_OS2)
+#if defined(AF_UNIX)
 	PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
 #endif /* AF_UNIX */
 #ifdef AF_AX25