summaryrefslogtreecommitdiffstats
path: root/src/vlib/pci/pci.c
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-29 10:34:21 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-04-22 19:09:13 +0000
commit36d099a5cd82d12c1ed147212e03244d0a5b3d5c (patch)
tree382d7a5e60d40edd03977b22e9a3dc3fb0af3c04 /src/vlib/pci/pci.c
parent4c15c94b09f6fa168260960e3b6e5ef487a0b90f (diff)
vlib: Place linux pci headers in a linux include block
Type: improvement Change-Id: I6b30ffd1eabfa9544d548082b7e38b8fe7224c07 Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src/vlib/pci/pci.c')
-rw-r--r--src/vlib/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/pci/pci.c b/src/vlib/pci/pci.c
index cd580f04176..0bc90c5532d 100644
--- a/src/vlib/pci/pci.c
+++ b/src/vlib/pci/pci.c
@@ -47,8 +47,10 @@
#include <dirent.h>
#include <sys/ioctl.h>
#include <net/if.h>
+#ifdef __linux__
#include <linux/ethtool.h>
#include <linux/sockios.h>
+#endif /* __linux__ */
vlib_pci_main_t pci_main;