From 89d9796fbedef4eed6956a2c095c7cc25330c28d Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 14 Oct 2000 12:37:19 +1100 Subject: - (djm) Add workaround for Linux 2.4's gratuitious errno change. Patch from Martin Johansson --- channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels.c') 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) continue; sock = socket(ai->ai_family, SOCK_STREAM, 0); if (sock < 0) { - if (errno != EINVAL) { + if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { error("socket: %.100s", strerror(errno)); return NULL; } else { -- cgit v1.2.3