diff options
| author | Daniel P. Berrange | 2016-03-31 15:08:10 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-04-05 11:46:52 +0200 |
| commit | 2354bebaa408b97adf008d3e07f439300b0a5c06 (patch) | |
| tree | 2112bac0aa754643dae39b3f4ec980ae1c322447 | |
| parent | nbd: Fix poor debug message (diff) | |
| download | qemu-2354bebaa408b97adf008d3e07f439300b0a5c06.tar.gz qemu-2354bebaa408b97adf008d3e07f439300b0a5c06.tar.xz qemu-2354bebaa408b97adf008d3e07f439300b0a5c06.zip | |
net: fix missing include of qapi/error.h in netmap.c
The netmap.c file fails to build on FreeBSD with
net/netmap.c:95:9: warning: implicit declaration of function 'error_setg_errno' is invalid in C99 [-Wimplicit-function-declaration]
error_setg_errno(errp, errno, "Failed to nm_open() %s",
^
net/netmap.c:432:9: warning: implicit declaration of function 'error_propagate' is invalid in C99 [-Wimplicit-function-declaration]
error_propagate(errp, err);
^
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1459429690-6144-1-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | net/netmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netmap.c b/net/netmap.c index d9c21b2b86..6cc0db5ee1 100644 --- a/net/netmap.c +++ b/net/netmap.c @@ -36,6 +36,7 @@ #include "clients.h" #include "sysemu/sysemu.h" #include "qemu/error-report.h" +#include "qapi/error.h" #include "qemu/iov.h" #include "qemu/cutils.h" |
