summaryrefslogtreecommitdiff
path: root/filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp')
-rw-r--r--filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp b/filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp
new file mode 100644
index 000000000000..953ff7e2e86b
--- /dev/null
+++ b/filesystems/mergerfs/files/patch-libfuse_lib_cpu.hpp
@@ -0,0 +1,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>