1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/devel/libvirt/files/patch-src_util_virprocess.c
Roman Bogorodskiy d79cf73321 devel/libvirt: fix build on -CURRENT
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.
2021-12-15 15:46:16 +04:00

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)
{