Open X547 opened 3 weeks ago
Draft patch:
diff --git a/perf/cairo-perf-micro.c b/perf/cairo-perf-micro.c
index 618272e..ddd0fb4 100644
--- a/perf/cairo-perf-micro.c
+++ b/perf/cairo-perf-micro.c
@@ -46,6 +46,11 @@
#include <sched.h>
#endif
+#ifdef __HAIKU__
+typedef cpuset_t cpu_set_t;
+#define CPU_ISSET CPUSET_ISSET
+#endif
+
#define CAIRO_PERF_ITERATIONS_DEFAULT 100
#define CAIRO_PERF_LOW_STD_DEV 0.03
#define CAIRO_PERF_STABLE_STD_DEV_COUNT 5
CC @korli.
I think we follow the naming of FreeBSD, and FreeBSD also needs patching for Cairo in this case.
I think we follow the naming of FreeBSD, and FreeBSD also needs patching for Cairo in this case.
But then why sched.h
header is inside "gnu" directory?
Just did a "quick" check, regular cairo1.18.0 builds fine, the xcairo variant fails with the above error also on 64bit.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259787 for more information
Version:
cairo1.18-1.18.0-1
Build log: