mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 03:00:42 -04:00
The src commit 5e04571cf3cf made sched.h types such as cpu_set_t visible without the -D_WITH_CPU_SET_T. This enables building glibc-compatible code, but fails as some of the macros are missing on the FreeBSD side. Temporarily fix that by disabling building this glibc compatible code on non-Linux.
11 lines
364 B
C
11 lines
364 B
C
--- src/util/virprocess.c.orig 2021-12-14 12:38:57 UTC
|
|
+++ src/util/virprocess.c
|
|
@@ -480,7 +480,7 @@ int virProcessKillPainfully(pid_t pid, bool force)
|
|
return virProcessKillPainfullyDelay(pid, force, 0, false);
|
|
}
|
|
|
|
-#if WITH_DECL_CPU_SET_T
|
|
+#if WITH_DECL_CPU_SET_T && defined(__linux__)
|
|
|
|
int virProcessSetAffinity(pid_t pid, virBitmap *map, bool quiet)
|
|
{
|