Files
haikuports/dev-libs/libuv/patches/libuv-1.35.0.patchset
Jerome Duval e51f47bcc9 libuv: bump version.
remove static library.
2020-03-26 09:27:45 +01:00

43 lines
1001 B
Plaintext

From 7670c98857baba2789aeb3a8edf5431db07acea9 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sun, 8 Sep 2019 12:42:17 +0200
Subject: disable setpriority/getpriority for R1B1.
diff --git a/src/unix/core.c b/src/unix/core.c
index ffce948..d261962 100644
--- a/src/unix/core.c
+++ b/src/unix/core.c
@@ -1443,6 +1443,9 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) {
if (priority == NULL)
return UV_EINVAL;
+#ifdef __HAIKU__
+ return UV__ERR(ENOSYS);
+#else
errno = 0;
r = getpriority(PRIO_PROCESS, (int) pid);
@@ -1451,6 +1454,7 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) {
*priority = r;
return 0;
+#endif
}
@@ -1458,8 +1462,10 @@ int uv_os_setpriority(uv_pid_t pid, int priority) {
if (priority < UV_PRIORITY_HIGHEST || priority > UV_PRIORITY_LOW)
return UV_EINVAL;
+#ifndef __HAIKU__
if (setpriority(PRIO_PROCESS, (int) pid, priority) != 0)
return UV__ERR(errno);
+#endif
return 0;
}
--
2.23.0