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 --- libpthread/linuxthreads/sysdeps/pthread/not-cancel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpthread/linuxthreads/sysdeps') diff --git a/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h b/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h index bbdb0739c..6d7c4d70a 100644 --- a/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h +++ b/libpthread/linuxthreads/sysdeps/pthread/not-cancel.h @@ -19,6 +19,7 @@ #include #include +#include /* Uncancelable open. */ #if defined __NR_openat && !defined __NR_open @@ -104,6 +105,7 @@ extern int __openat64_nocancel (int fd, const char *fname, int oflag, # 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