diff options
| author | Paolo Bonzini | 2017-03-17 16:24:12 +0100 |
|---|---|---|
| committer | Peter Maydell | 2017-03-17 19:27:14 +0100 |
| commit | eb048026aa818f4e4121829b7b413580d830e738 (patch) | |
| tree | 931c5175e8e6eb425f0d52c482202efa9570a34f /block | |
| parent | Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff) | |
| download | qemu-eb048026aa818f4e4121829b7b413580d830e738.tar.gz qemu-eb048026aa818f4e4121829b7b413580d830e738.tar.xz qemu-eb048026aa818f4e4121829b7b413580d830e738.zip | |
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.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20170317152412.8472-1-pbonzini@redhat.com
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'block')
| -rw-r--r-- | block/curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
