From ae6e146775f13361748359f225574b68be6de718 Mon Sep 17 00:00:00 2001 From: Olivier Valentin Date: Thu, 18 Jul 2024 11:33:39 +0200 Subject: [PATCH] hurd: stub uv_thread_setpriority() --- src/unix/core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/unix/core.c b/src/unix/core.c index 1611cba2..971ecf93 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -1616,6 +1616,7 @@ static int set_nice_for_calling_thread(int priority) { * If the function fails, the return value is non-zero. */ int uv_thread_setpriority(uv_thread_t tid, int priority) { +#if !defined(__GNU__) int r; int min; int max; @@ -1681,6 +1682,10 @@ int uv_thread_setpriority(uv_thread_t tid, int priority) { } return 0; +#else /* !defined(__GNU__) */ + /* Simulate success on systems where thread priority is not implemented. */ + return 0; +#endif /* !defined(__GNU__) */ } int uv_os_uname(uv_utsname_t* buffer) {