summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/not-cancel.h
diff options
context:
space:
mode:
authorDmitry Chestnykh <dm.chestnykh@gmail.com>2024-05-18 08:59:47 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2024-05-18 10:13:46 +0200
commit1b9e6f067da843a11cbb72b8a2ff6f233b0ecdf4 (patch)
tree919159be425e49dc193f9eb98c8e571a5afd542d /libc/sysdeps/linux/common/not-cancel.h
parent573cb24a31289b7610d207e5147cdd158000bd20 (diff)
Fix riscv32 build with gcc-14.
Add missing includes and function decls. Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/not-cancel.h')
-rw-r--r--libc/sysdeps/linux/common/not-cancel.h2
1 files changed, 2 insertions, 0 deletions
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 <sys/types.h>
#include <sysdep.h>
+#include <time.h>
#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