From ccd973f721c48945fc706d8fef6b396580853a9f Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Thu, 16 Jul 2020 15:29:20 -0500 Subject: [PATCH] python/audit2allow: add #include to sepolgen-ifgen-attr-helper.c I found that building on OpenWrt/musl failed with: sepolgen-ifgen-attr-helper.c:152:16: error: 'PATH_MAX' undeclared ... Musl is less "generous" than glibc in recursively including header files, and I suspect this is the reason for this error. Explicitly including limits.h fixes the problem. Signed-off-by: W. Michael Petullo --- python/audit2allow/sepolgen-ifgen-attr-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/python/audit2allow/sepolgen-ifgen-attr-helper.c b/python/audit2allow/sepolgen-ifgen-attr-helper.c index 53f20818722a..f010c9584c1f 100644 --- a/python/audit2allow/sepolgen-ifgen-attr-helper.c +++ b/python/audit2allow/sepolgen-ifgen-attr-helper.c @@ -28,6 +28,7 @@ #include +#include #include #include #include -- 2.29.0