From 98dccbff1812b69b6ffdd2db6b54d49b9d9effe1 Mon Sep 17 00:00:00 2001 From: Giuseppe Lettieri Date: Fri, 2 Oct 2015 22:46:23 +0200 Subject: [PATCH] linux: fix compilation error on kernels w/o IOMMU --- LINUX/netmap_linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LINUX/netmap_linux.c b/LINUX/netmap_linux.c index 29a9f1028..253cbd776 100644 --- a/LINUX/netmap_linux.c +++ b/LINUX/netmap_linux.c @@ -35,9 +35,6 @@ #include "netmap_linux_config.h" -#ifdef NETMAP_LINUX_HAVE_IOMMU -#include - void nm_os_ifnet_lock(void) { @@ -99,6 +96,9 @@ nm_os_ifnet_fini(void) } } +#ifdef NETMAP_LINUX_HAVE_IOMMU +#include + /* #################### IOMMU ################## */ /* * Returns the IOMMU domain id that the device belongs to.