summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-10-14 12:37:19 +1100
committerDamien Miller <djm@mindrot.org>2000-10-14 12:37:19 +1100
commit89d9796fbedef4eed6956a2c095c7cc25330c28d (patch)
treecad7c8ba07ce733b41db684fb52444306026ff93 /channels.c
parent15b2952cd83522051bafd23766ca1b75edfed124 (diff)
- (djm) Add workaround for Linux 2.4's gratuitious errno change. Patch
from Martin Johansson <fatbob@acc.umu.se>
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index c842aa231..96d8dc4b4 100644
--- a/channels.c
+++ b/channels.c
@@ -1759,7 +1759,7 @@ x11_create_display_inet(int screen_number, int x11_display_offset)
1759 continue; 1759 continue;
1760 sock = socket(ai->ai_family, SOCK_STREAM, 0); 1760 sock = socket(ai->ai_family, SOCK_STREAM, 0);
1761 if (sock < 0) { 1761 if (sock < 0) {
1762 if (errno != EINVAL) { 1762 if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) {
1763 error("socket: %.100s", strerror(errno)); 1763 error("socket: %.100s", strerror(errno));
1764 return NULL; 1764 return NULL;
1765 } else { 1765 } else {