projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f27b1
)
sched.h needs to be imported on Darwin/OSX targets.
author
Apple SWE
<jeremyhu@apple.com>
Wed, 14 Mar 2018 01:29:45 +0000
(18:29 -0700)
committer
Jeremy Huddleston Sequoia
<jeremyhu@apple.com>
Thu, 15 Mar 2018 05:08:34 +0000
(22:08 -0700)
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>
src/gallium/drivers/swr/swr_fence.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/swr/swr_fence.cpp
b/src/gallium/drivers/swr/swr_fence.cpp
index 3005eb9aaadd61dd82b92f2ea182d9cebae9273a..b05ac8cec02fa5a3a8b922b350675c0145fd6c05 100644
(file)
--- 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