Merge branch 'enotsock' into 'master'

GIO: Convert ENOTSOCK to G_IO_ERROR_INVALID_ARGUMENT

Closes #1728

See merge request GNOME/glib!731
This commit is contained in:
Philip Withnall 2019-03-19 09:03:13 +00:00
commit fcbfa0c65f

View File

@ -272,6 +272,12 @@ g_io_error_from_errno (gint err_no)
break;
#endif
#ifdef ENOTSOCK
case ENOTSOCK:
return G_IO_ERROR_INVALID_ARGUMENT;
break;
#endif
default:
return G_IO_ERROR_FAILED;
break;