summaryrefslogtreecommitdiff
path: root/filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp
blob: 953ff7e2e86bf9c16bd6fc4c5d28e88d26f679c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- libfuse/lib/cpu.hpp.orig	2024-02-29 20:41:22 UTC
+++ libfuse/lib/cpu.hpp
@@ -5,8 +5,12 @@
 #endif
 
 #include <pthread.h>
+#ifdef __FreeBSD__
+#define sched_getaffinity(pid, size, set) 0
+#define pthread_setaffinity_np(thread, size, set) 0
+#else
 #include <sched.h>
-
+#endif
 #include <set>
 #include <unordered_map>
 #include <vector>