build: fix build for Debian 9 and Debian 10
[vpp.git] / src / vnet / devices / virtio / virtio.h
index f1eaa07..b00e1ec 100644 (file)
@@ -129,7 +129,15 @@ typedef struct
 
   /* error */
   clib_error_t *error;
-  u8 mac_addr[6];
+  union
+  {
+    struct
+    {
+      u32 mac_addr32;
+      u16 mac_addr16;
+    };
+    u8 mac_addr[6];
+  };
   union
   {
     struct                     /* tun/tap interface */