From eb048026aa818f4e4121829b7b413580d830e738 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 17 Mar 2017 16:24:12 +0100 Subject: curl: fix compilation on OpenBSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EPROTO is not found in OpenBSD. We usually use EIO when no better errno is available, do that here too. Reported-by: Peter Maydell Signed-off-by: Paolo Bonzini Message-id: 20170317152412.8472-1-pbonzini@redhat.com Reviewed-by: Philippe Mathieu-Daudé Tested-by: Peter Maydell Signed-off-by: Peter Maydell --- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block/curl.c') diff --git a/block/curl.c b/block/curl.c index e83dcd8f50..34dbd335f4 100644 --- a/block/curl.c +++ b/block/curl.c @@ -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; -- cgit v1.2.1