diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-08-04 14:20:12 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-08-04 14:59:01 +0100 |
commit | 93fc0893742092c7cbca5026da717a6ef2ae60b5 (patch) | |
tree | ecc2ce900dd704b7d88f5ee54e3848cdd6804a58 | |
parent | f26233edb6a550bf23d51d5d4c864baf093e46e1 (diff) | |
download | procd-93fc0893742092c7cbca5026da717a6ef2ae60b5.tar.gz |
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 <daniel@makrotopia.org>
-rw-r--r-- | jail/cgroups-bpf.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 <assert.h> #include <linux/bpf.h> +#include <sys/cdefs.h> +#ifndef __GLIBC__ #include <sys/reg.h> +#endif #include <sys/syscall.h> #include <libubox/blobmsg.h> |