From: Daniel Golle Date: Wed, 4 Aug 2021 13:20:12 +0000 (+0100) Subject: jail: cgroups-bpf: don't use sys/reg.h when building with glibc X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=93fc0893742092c7cbca5026da717a6ef2ae60b5;p=project%2Fprocd.git jail: cgroups-bpf: don't use sys/reg.h when building with glibc To access __WORDSIZE with glibc sys/cdefs.h is included now. Signed-off-by: Daniel Golle --- diff --git a/jail/cgroups-bpf.c b/jail/cgroups-bpf.c index b0079d9..c287e8b 100644 --- a/jail/cgroups-bpf.c +++ b/jail/cgroups-bpf.c @@ -19,7 +19,10 @@ #include #include +#include +#ifndef __GLIBC__ #include +#endif #include #include