Do not define __sysinfo twice It is already defined in musllibc and defining it here results in multiple definition errors with clang 11. Will need to be revisited when musllibc is removed. Signed-off-by: Stefan O'Rear <sorear@fastmail.com>
diff --git a/src/env.c b/src/env.c index 3fb5646..a18c6eb 100644 --- a/src/env.c +++ b/src/env.c
@@ -27,8 +27,8 @@ #define MIN_ALIGN_BYTES 16 #define MIN_ALIGNED __attribute__((aligned (MIN_ALIGN_BYTES))) -// Global vsyscall handler. -size_t __sysinfo = 0; +// Global vsyscall handler (defined in musllibc) +extern size_t __sysinfo; // Static TLS for initial thread. static char static_tls[CONFIG_SEL4RUNTIME_STATIC_TLS] MIN_ALIGNED = {};