graphics/cairo: define _WITH_CPU_SET_T to fix build on -CURRENT
Changes in 90fa9705d5cd hide functionality behind _WITH_CPU_SET_T,
and require consumers to opt-in.
Error:
--- cairo-perf-micro.o ---
cairo-perf-micro.c:418:5: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
cpu_set_t affinity;
^~~~~~~~~
cpusetid_t
/usr/include/sys/types.h:86:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t cpusetid_t;
^
PR: 259787
(cherry picked from commit ad03eb1e0a
)
This commit is contained in:
parent
ecbf3b83f0
commit
49dc1cc6ac
10
graphics/cairo/files/patch-perf_cairo-perf-micro.c
Normal file
10
graphics/cairo/files/patch-perf_cairo-perf-micro.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- perf/cairo-perf-micro.c.orig 2020-11-26 23:20:59 UTC
|
||||
+++ perf/cairo-perf-micro.c
|
||||
@@ -43,6 +43,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SCHED_H
|
||||
+#define _WITH_CPU_SET_T
|
||||
#include <sched.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user