diff options
author | Brad Smith <brad@comstyle.com> | 2022-11-12 06:40:43 -0500 |
---|---|---|
committer | Konstantin Kostiuk <kkostiuk@redhat.com> | 2022-12-20 15:54:41 +0200 |
commit | 28236ad8d152ffb8e7e7a280747df50cd8e49471 (patch) | |
tree | a297a65fac7dac4b8a1e0307ebf4f529628fc8f5 /qga/commands-bsd.c | |
parent | cce910f219d3875c1c29aed70378d030f7110e01 (diff) |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qga/commands-bsd.c b/qga/commands-bsd.c index 15cade2d4c..17bddda1cf 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) |