]> Git Repo - qemu.git/commitdiff
curl: fix compilation on OpenBSD
authorPaolo Bonzini <[email protected]>
Fri, 17 Mar 2017 15:24:12 +0000 (16:24 +0100)
committerPeter Maydell <[email protected]>
Fri, 17 Mar 2017 18:27:14 +0000 (18:27 +0000)
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]>
Message-id: 20170317152412[email protected]
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
block/curl.c

index e83dcd8f505a81c2442c367822f056cf46e71811..34dbd335f4211d878427cf604d66e56ec56c9f41 100644 (file)
@@ -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;
This page took 0.029754 seconds and 4 git commands to generate.