mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
sched.h needs to be imported on Darwin/OSX targets.
sched_yield is used but the include reference on Darwin is missing. This patch conditionally guards on Darwin/OSX to import sched.h first. Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
67f27b1e18
commit
361f79c97f
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,10 @@
|
|||
#include "swr_screen.h"
|
||||
#include "swr_fence.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <sched.h>
|
||||
#endif
|
||||
|
||||
#if defined(PIPE_CC_MSVC) // portable thread yield
|
||||
#define sched_yield SwitchToThread
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue