musl 1.2 no longer ships with <sys/cdefs.h>. Use it only on glibc, musl provides __WORDSIZE macro in <sys/regs.h>. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
@@ -19,8 +19,9 @@
#include <assert.h>
#include <linux/bpf.h>
+#ifdef __GLIBC__
#include <sys/cdefs.h>
-#ifndef __GLIBC__
+#else
#include <sys/reg.h>
#endif
#include <sys/syscall.h>