aboutsummaryrefslogtreecommitdiff
path: root/qga/commands-bsd.c
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2022-11-12 06:40:43 -0500
committerKonstantin Kostiuk <kkostiuk@redhat.com>2022-12-20 15:54:41 +0200
commit28236ad8d152ffb8e7e7a280747df50cd8e49471 (patch)
treea297a65fac7dac4b8a1e0307ebf4f529628fc8f5 /qga/commands-bsd.c
parentcce910f219d3875c1c29aed70378d030f7110e01 (diff)
downloadqemu-28236ad8d152ffb8e7e7a280747df50cd8e49471.zip
qemu-28236ad8d152ffb8e7e7a280747df50cd8e49471.tar.gz
qemu-28236ad8d152ffb8e7e7a280747df50cd8e49471.tar.bz2
qga: Add initial OpenBSD and NetBSD support
qga: Add initial OpenBSD and NetBSD support Signed-off-by: Brad Smith <brad@comstyle.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'qga/commands-bsd.c')
-rw-r--r--qga/commands-bsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qga/commands-bsd.c b/qga/commands-bsd.c
index 15cade2..17bddda 100644
--- a/qga/commands-bsd.c
+++ b/qga/commands-bsd.c
@@ -21,7 +21,12 @@
#include <sys/ucred.h>
#include <sys/mount.h>
#include <net/if_dl.h>
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+#include <net/if_arp.h>
+#include <netinet/if_ether.h>
+#else
#include <net/ethernet.h>
+#endif
#include <paths.h>
#if defined(CONFIG_FSFREEZE) || defined(CONFIG_FSTRIM)