curl: fix compilation on OpenBSD
PATCH 1/1 curl: fix compilation on OpenBSD
EPROTO is not found in OpenBSD. We usually use EIO when no better
errno is available, do that here too.
--- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/curl.c +1 -1
@@ -377,7 +377,7 @@ static void curl_multi_check_completion(BDRVCURLState *s) }qemu_mutex_unlock (&s->mutex); - acb->common.cb (acb->common.opaque, -EPROTO ); + acb->common.cb (acb->common.opaque, -EIO );qemu_mutex_lock (&s->mutex);qemu_aio_unref (acb); state->acb[i] =NULL ;
Signature · 1 line
2.9.3
Quoted 5 lines · Paolo Bonzini
EPROTO is not found in OpenBSD. We usually use EIO when no better
errno is available, do that here too.Reported-by Peter Maydell <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>
Quoted 18 lines
--- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)block/curl.c +1
-1@@ -377,7 +377,7 @@ static void curl_multi_check_completion(BDRVCURLState *s) }qemu_mutex_unlock (&s->mutex); - acb->common.cb (acb->common.opaque, -EPROTO ); + acb->common.cb (acb->common.opaque, -EIO );qemu_mutex_lock (&s->mutex);qemu_aio_unref (acb); state->acb[i] =NULL ;
Max Reitz
AppliedQuoted 8 lines · Paolo Bonzini
EPROTO is not found in OpenBSD. We usually use EIO when no better
errno is available, do that here too.Reported-by Peter Maydell <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block branch:
https://github.com/XanClic/qemu/commits/block
Max
Quoted 10 lines · Max Reitz
Quoted 8 lines · Paolo Bonzini
EPROTO is not found in OpenBSD. We usually use EIO when no better
errno is available, do that here too.Reported-by Peter Maydell <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 3 lines
Thanks, applied to my block branch:
Thanks; I've applied it to master as a build fix, though, so you can drop it (or leave it and let the merge sort it out if you like).
thanks
-- PMM
Quoted 11 lines · Peter Maydell
Quoted 10 lines · Max Reitz
Quoted 8 lines · Paolo Bonzini
EPROTO is not found in OpenBSD. We usually use EIO when no better
errno is available, do that here too.Reported-by Peter Maydell <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
Quoted 3 lines
Thanks, applied to my block branch:
Thanks; I've applied it to master as a build fix, though, so you can drop it (or leave it and let the merge sort it out if you like).
Got it, thanks!
Max