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:
Trond Endrestøl 2021-11-23 11:35:34 +01:00 committed by Tobias C. Berner
parent ecbf3b83f0
commit 49dc1cc6ac

View 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