From 1b9e6f067da843a11cbb72b8a2ff6f233b0ecdf4 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Sat, 18 May 2024 08:59:47 +0300 Subject: Fix riscv32 build with gcc-14. Add missing includes and function decls. Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/common/not-cancel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/common/not-cancel.h b/libc/sysdeps/linux/common/not-cancel.h index e4fb1d7fe..426edcc46 100644 --- a/libc/sysdeps/linux/common/not-cancel.h +++ b/libc/sysdeps/linux/common/not-cancel.h @@ -19,6 +19,7 @@ #include #include +#include #ifdef NOT_IN_libc @@ -114,6 +115,7 @@ extern __typeof(pause) __pause_nocancel; # define nanosleep_not_cancel(requested_time, remaining) \ INLINE_SYSCALL (nanosleep, 2, requested_time, remaining) #else +extern int __nanosleep_nocancel (const struct timespec *requested_time, struct timespec *remaining); # define nanosleep_not_cancel(requested_time, remaining) \ __nanosleep_nocancel (requested_time, remaining) #endif -- cgit v1.2.3