diff options
author | Apple SWE <[email protected]> | 2018-03-13 18:29:45 -0700 |
---|---|---|
committer | Jeremy Huddleston Sequoia <[email protected]> | 2018-03-14 22:08:34 -0700 |
commit | 361f79c97f6eb4bfdb2162672d2ca8f3c486f22c (patch) | |
tree | d144fa3452219408050b275704967485a89b94a5 /src/gallium/drivers/swr/swr_fence.cpp | |
parent | 67f27b1e18d8e68c795f2eb43c06abfe4b6fcaca (diff) |
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 <[email protected]>
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_fence.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_fence.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_fence.cpp b/src/gallium/drivers/swr/swr_fence.cpp index 3005eb9aaad..b05ac8cec02 100644 --- a/src/gallium/drivers/swr/swr_fence.cpp +++ b/src/gallium/drivers/swr/swr_fence.cpp @@ -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 |