From a63b99f24df3f2a65133e22dd8a0f70e7b706fd6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 30 Jul 2022 07:29:28 -0700 Subject: libgo: use SYS_timer_settime32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Musl defines SYS_timer_settime32, not SYS_timer_settime, on 32-bit systems. Based on patch by Sören Tempel. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/420222 --- libgo/sysinfo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libgo') diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index fc02109..180f5c3 100644 --- a/libgo/sysinfo.c +++ b/libgo/sysinfo.c @@ -354,6 +354,11 @@ enum { }; #endif +#if !defined(SYS_timer_settime) && defined(SYS_timer_settime32) +// musl defines SYS_timer_settim32 on 32-bit systems. +#define SYS_timer_settime SYS_timer_settime32 +#endif + #if defined(HAVE_LOFF_T) // loff_t can be defined as a macro; for -fgo-dump-spec make sure we // see a typedef. -- cgit v1.1