sched.h needs to be imported on Darwin/OSX targets.
authorApple SWE <jeremyhu@apple.com>
Wed, 14 Mar 2018 01:29:45 +0000 (18:29 -0700)
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>
Wed, 14 Mar 2018 05:50:56 +0000 (22:50 -0700)
commit9dc5063262d0a5130cf0723a33079f3fd17560c3
treed4167b7a915315687e75cc379118539e0d53e4da
parentde0d10db93d85de79c7b4451c4851ace2976f8f4
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>
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
src/gallium/drivers/swr/swr_fence.cpp