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>
Thu, 15 Mar 2018 05:08:34 +0000 (22:08 -0700)
commit361f79c97f6eb4bfdb2162672d2ca8f3c486f22c
treed144fa3452219408050b275704967485a89b94a5
parent67f27b1e18d8e68c795f2eb43c06abfe4b6fcaca
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>
src/gallium/drivers/swr/swr_fence.cpp