summaryrefslogtreecommitdiffstats
path: root/src/vlib/linux
diff options
context:
space:
mode:
authorGuillaume Solignac <gsoligna@cisco.com>2023-04-20 18:02:59 +0200
committerDamjan Marion <dmarion@0xa5.net>2024-04-29 08:35:20 +0000
commit52bd5376e42d48139561b6acbeb0683afccc9173 (patch)
tree5a60a84862002314c6f7190101427aa226e16d26 /src/vlib/linux
parent83b12bf895ca235e479f8dccc2c4bb198cccbc3b (diff)
pci: fix missing limits.h
When building with musl, PATH_MAX is not available if we don't add its header to pci.c. Type: fix Signed-off-by: Guillaume Solignac <gsoligna@cisco.com> Change-Id: I3d4e7cf5754d7c1d480834d7cd038d5bda46fd2f Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'src/vlib/linux')
-rw-r--r--src/vlib/linux/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/linux/pci.c b/src/vlib/linux/pci.c
index 08923bebcdf..f7c63bc3607 100644
--- a/src/vlib/linux/pci.c
+++ b/src/vlib/linux/pci.c
@@ -55,6 +55,7 @@
#include <linux/ethtool.h>
#include <linux/sockios.h>
#include <linux/vfio.h>
+#include <limits.h>
#include <sys/eventfd.h>
#define SYSFS_DEVICES_PCI "/sys/devices/pci"