From: Daniel Golle Date: Wed, 4 Aug 2021 19:55:21 +0000 (+0100) Subject: jail: cgroups-bpf: fix compile with musl 1.2 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e10de288094795aa14ed972b6d6875102771194e;p=project%2Fprocd.git jail: cgroups-bpf: fix compile with musl 1.2 musl 1.2 no longer ships with . Use it only on glibc, musl provides __WORDSIZE macro in . Signed-off-by: Daniel Golle --- diff --git a/jail/cgroups-bpf.c b/jail/cgroups-bpf.c index c287e8b..f1bbeff 100644 --- a/jail/cgroups-bpf.c +++ b/jail/cgroups-bpf.c @@ -19,8 +19,9 @@ #include #include +#ifdef __GLIBC__ #include -#ifndef __GLIBC__ +#else #include #endif #include