summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-01-02 12:45:34 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2003-01-02 12:45:34 (GMT)
commit34d3e2d22a168f094ddf030984d19ca39d6e9860 (patch)
tree4aef94d8a43037f0119ad4809ada2cf66b26e96f /Modules
parent214d39a0eef5c32c215c830cbf5b53f36c1d68f6 (diff)
downloadcpython-34d3e2d22a168f094ddf030984d19ca39d6e9860.zip
cpython-34d3e2d22a168f094ddf030984d19ca39d6e9860.tar.gz
cpython-34d3e2d22a168f094ddf030984d19ca39d6e9860.tar.bz2
OS/2 sockets do not support AF_UNIX, even though EMX headers define it
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 23115c5..1bbd941 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -763,7 +763,7 @@ makesockaddr(int sockfd, struct sockaddr *addr, int addrlen)
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 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
{
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 @@ getsockaddrlen(PySocketSockObject *s, socklen_t *len_ret)
{
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 @@ init_socket(void)
#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