Merge branch 'wip/hughsie/EOPNOTSUPP' into 'master'

Handle EOPNOTSUPP error from splice()

See merge request GNOME/glib!112
This commit is contained in:
Philip Withnall
2018-06-19 11:13:37 +00:00

View File

@@ -2974,7 +2974,7 @@ retry:
if (errsv == EINTR)
goto retry;
else if (errsv == ENOSYS || errsv == EINVAL)
else if (errsv == ENOSYS || errsv == EINVAL || errsv == EOPNOTSUPP)
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
_("Splice not supported"));
else