Skip to content

Commit

Permalink
linux: fix compilation error on kernels w/o IOMMU
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppelettieri committed Oct 2, 2015
1 parent a17933e commit 98dccbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LINUX/netmap_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@

#include "netmap_linux_config.h"

#ifdef NETMAP_LINUX_HAVE_IOMMU
#include <linux/iommu.h>

void
nm_os_ifnet_lock(void)
{
Expand Down Expand Up @@ -99,6 +96,9 @@ nm_os_ifnet_fini(void)
}
}

#ifdef NETMAP_LINUX_HAVE_IOMMU
#include <linux/iommu.h>

/* #################### IOMMU ################## */
/*
* Returns the IOMMU domain id that the device belongs to.
Expand Down

0 comments on commit 98dccbf

Please sign in to comment.