summaryrefslogtreecommitdiff
path: root/net/netmap.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-03-31 14:08:10 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-04-04 15:01:14 +0100
commite31f0451876aa7ada74d60304aa241506a383797 (patch)
tree27ad6897294c0eaa7088f258d95ea80681cc51ff /net/netmap.c
parent9d227f194dc7d3f9c8fee48444e7a1db38b33500 (diff)
downloadqemu-e31f0451876aa7ada74d60304aa241506a383797.tar.gz
qemu-e31f0451876aa7ada74d60304aa241506a383797.tar.bz2
qemu-e31f0451876aa7ada74d60304aa241506a383797.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> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1459429690-6144-1-git-send-email-berrange@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'net/netmap.c')
-rw-r--r--net/netmap.c1
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"