diff mbox series

iplink: fix build on musl libc due to missing PATH_MAX

Message ID 27de1ca7-659f-bf0f-e53c-5336245078a4@applied-asynchrony.com (mailing list archive)
State Superseded
Delegated to: Stephen Hemminger
Headers show
Series iplink: fix build on musl libc due to missing PATH_MAX | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Holger Hoffstätte Dec. 8, 2024, 9:49 a.m. UTC
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 <holger@applied-asynchrony.com>
---
  ip/iplink.c | 1 +
  1 file changed, 1 insertion(+)
diff mbox series

Patch

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"