git: d79cf73321c1 - main - devel/libvirt: fix build on -CURRENT

From: Roman Bogorodskiy <novel_at_FreeBSD.org>
Date: Wed, 15 Dec 2021 11:46:35 UTC
The branch main has been updated by novel:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d79cf73321c1097af0296352eee807aae601dd74

commit d79cf73321c1097af0296352eee807aae601dd74
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2021-12-15 11:37:34 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
CommitDate: 2021-12-15 11:46:16 +0000

    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.
---
 devel/libvirt/files/patch-src_util_virprocess.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/devel/libvirt/files/patch-src_util_virprocess.c b/devel/libvirt/files/patch-src_util_virprocess.c
new file mode 100644
index 000000000000..a3668f357617
--- /dev/null
+++ b/devel/libvirt/files/patch-src_util_virprocess.c
@@ -0,0 +1,11 @@
+--- 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)
+ {