Use rte_io.h for non-x86 arch. Signed-off-by: Santosh Shukla <sshukla at mvista.com> --- drivers/net/virtio/virtio_pci.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/net/virtio/virtio_pci.h b/drivers/net/virtio/virtio_pci.h index 47f722a..3f4ff80 100644 --- a/drivers/net/virtio/virtio_pci.h +++ b/drivers/net/virtio/virtio_pci.h @@ -40,7 +40,11 @@ #include <sys/types.h> #include <machine/cpufunc.h> #else +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) #include <sys/io.h> +#else +#include <rte_io.h> +#endif #endif #include <rte_ethdev.h> -- 1.7.9.5