From 1d5a2e0f88e0c53fede03632fa92ffade5e79ac5 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 11 Apr 2021 10:04:59 +0200 Subject: [PATCH] fix build on musl Build on musl is broken since version 1.7.1 and commit a1f20223cfcf7b9eae8c9e7e7a07e7bf1377f65b: libbridge_devif.c: In function 'fpopen': libbridge_devif.c:33:12: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'? 33 | char path[PATH_MAX]; | ^~~~~~~~ | AF_MAX Fixes: - http://autobuild.buildroot.org/results/0f080ff6913595ee2732b93206e5001c837c1bcc Signed-off-by: Fabrice Fontaine [Upstream status: sent to Stephen Hemminger ] --- libbridge/libbridge_devif.c | 1 + libbridge/libbridge_init.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c index 8b7d954..6c679f6 100644 --- a/libbridge/libbridge_devif.c +++ b/libbridge/libbridge_devif.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include diff --git a/libbridge/libbridge_init.c b/libbridge/libbridge_init.c index c914971..83a97cd 100644 --- a/libbridge/libbridge_init.c +++ b/libbridge/libbridge_init.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include -- 2.30.2