Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260906220222.GD23438@brightrain.aerifal.cx>
Date: Sun, 6 Sep 2026 18:02:22 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: Compilation error on 64-bit arches

On Sun, Sep 06, 2026 at 10:03:40PM +0300, Alexey Izbyshev wrote:
> Hello,
> 
> Just discovered that current master doesn't build on 64-bit arches. A patch
> is attached.
> 
> Alexey

> From 00fbee24bb0426f084041b800e80bd4352130a92 Mon Sep 17 00:00:00 2001
> From: Alexey Izbyshev <izbyshev@...ras.ru>
> Date: Sun, 6 Sep 2026 20:53:01 +0300
> Subject: [PATCH] clock_nanosleep: fix compilation error on 64-bit arches
> Mail-Followup-To: musl@...ts.openwall.com
> 
> Fixes: cb0cdc2e88c6 ("clock_nanosleep: don't assume nanosleep syscall
> exists")
> ---
>  src/time/clock_nanosleep.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/time/clock_nanosleep.c b/src/time/clock_nanosleep.c
> index c36d7ba53443..8b5e214e63e5 100644
> --- a/src/time/clock_nanosleep.c
> +++ b/src/time/clock_nanosleep.c
> @@ -39,7 +39,7 @@ int __clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, stru
>  	return -r;
>  #else
>  	if (clk == CLOCK_REALTIME && !flags)
> -		return -__sys_nanosleep_cp(SYS_nanosleep, req, rem);
> +		return -__sys_nanosleep_cp(req, rem);
>  	return -__syscall_cp(SYS_clock_nanosleep, clk, flags, req, rem);
>  #endif
>  }
> -- 
> 2.55.0
> 

Hey, thanks! I saw this on IRC before I saw your mail and already got
a patch in.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.