jail: cgroups-bpf: don't use sys/reg.h when building with glibc
authorDaniel Golle <daniel@makrotopia.org>
Wed, 4 Aug 2021 13:20:12 +0000 (14:20 +0100)
committerDaniel 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

index b0079d9b95a72444bea2fb3e0dcabacfe55ff969..c287e8bb7ee4be7095bdb3b003f37f18a8ed1f95 100644 (file)
 
 #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>