Skip to contentSkip to conversation

iplink: fix build on musl libc due to missing PATH_MAX

PATCH New Holger Hoffstätte 1 participant 1 message Dec 8, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iplink: fix build on musl libc due to missing PATH_MAX

Commit a597ab1 ("iplink: Fix link-netns id and link ifindex") started using PATH_MAX, but <limits.h> is apparently not implicitly included by the other standard headers.

---
 ip/iplink.c | 1 +
 1 file changed, 1 insertion(+)
ip/iplink.c +1 -0
index aa2332fc..fbaa8c2b 100644
@@ -22,6 +22,7 @@
 #include <sys/ioctl.h>
 #include <stdbool.h>
 #include <linux/mpls.h>
+#include <limits.h>
 
 #include "rt_names.h"
 #include "utils.h"
Signature · 1 line
2.47.1