diff Modules/socketmodule.c @ 27019:9ee4fd05d3cb legacy-trunk

OS/2 sockets do not support AF_UNIX, even though EMX headers define it
author Andrew MacIntyre <andymac@bullseye.apana.org.au>
date Thu, 02 Jan 2003 12:45:34 +0000
parents 7ddea4dfa519
children 2443c557cbc3
line wrap: on
line diff
--- a/Modules/socketmodule.c	Thu Jan 02 12:41:58 2003 +0000
+++ b/Modules/socketmodule.c	Thu Jan 02 12:45:34 2003 +0000
@@ -763,7 +763,7 @@
 		return ret;
 	}
 
-#ifdef AF_UNIX
+#if defined(AF_UNIX) && !defined(PYOS_OS2)
 	case AF_UNIX:
 	{
 		struct sockaddr_un *a = (struct sockaddr_un *) addr;
@@ -837,7 +837,7 @@
 {
 	switch (s->sock_family) {
 
-#ifdef AF_UNIX
+#if defined(AF_UNIX) && !defined(PYOS_OS2)
 	case AF_UNIX:
 	{
 		struct sockaddr_un* addr;
@@ -960,7 +960,7 @@
 {
 	switch (s->sock_family) {
 
-#ifdef AF_UNIX
+#if defined(AF_UNIX) && !defined(PYOS_OS2)
 	case AF_UNIX:
 	{
 		*len_ret = sizeof (struct sockaddr_un);
@@ -3194,7 +3194,7 @@
 #ifdef AF_INET6
 	PyModule_AddIntConstant(m, "AF_INET6", AF_INET6);
 #endif /* AF_INET6 */
-#ifdef AF_UNIX
+#if defined(AF_UNIX) && !defined(PYOS_OS2)
 	PyModule_AddIntConstant(m, "AF_UNIX", AF_UNIX);
 #endif /* AF_UNIX */
 #ifdef AF_AX25