Commit 1d4bb3f5 authored by Svante Signell's avatar Svante Signell Committed by Dan Winship

gio/gsocket.c: Fix error code checks when SOCK_CLOEXEC is defined but

not supported on GNU/Hurd.
parent 04e784e0
......@@ -499,7 +499,7 @@ g_socket (gint domain,
return fd;
/* It's possible that libc has SOCK_CLOEXEC but the kernel does not */
if (fd < 0 && errno == EINVAL)
if (fd < 0 && (errno == EINVAL || errno == EPROTOTYPE))
fd = socket (domain, type, protocol);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment