projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f26233e
)
jail: cgroups-bpf: don't use sys/reg.h when building with glibc
author
Daniel Golle
<daniel@makrotopia.org>
Wed, 4 Aug 2021 13:20:12 +0000
(14:20 +0100)
committer
Daniel Golle
<daniel@makrotopia.org>
Wed, 4 Aug 2021 13:59:01 +0000
(14:59 +0100)
To access __WORDSIZE with glibc sys/cdefs.h is included now.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/cgroups-bpf.c
patch
|
blob
|
history
diff --git
a/jail/cgroups-bpf.c
b/jail/cgroups-bpf.c
index b0079d9b95a72444bea2fb3e0dcabacfe55ff969..c287e8bb7ee4be7095bdb3b003f37f18a8ed1f95 100644
(file)
--- 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>