gio: PPC64 returns EOPNOTSUPP from splice() if not supported

This commit is contained in:
Richard Hughes 2018-06-14 19:18:25 +01:00
parent c36c55dbd6
commit 7a7fe06939

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