DORMANTno replies

[PATCH] iplink: fix build on musl libc due to missing PATH_MAX

From: Holger Hoffstätte <hidden>
Date: 2024-12-08 09:49:27
Subsystem: the rest · Maintainer: Linus Torvalds

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.

Signed-off-by: Holger Hoffstätte <redacted>
---
  ip/iplink.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/ip/iplink.c b/ip/iplink.c
index aa2332fc..fbaa8c2b 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -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"
-- 
2.47.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help