diff options
author | Alan Hourihane <[email protected]> | 2004-04-26 10:10:22 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2004-04-26 10:10:22 +0000 |
commit | 462183fe4cb6df6d90632d9e2cee881c8d26b1cb (patch) | |
tree | 0fb5d1c17d80026bec0fe3c2e0449fe30ea9e69e /src/mesa/drivers/dri/common/vblank.h | |
parent | 08fa6de85035c428d77cb88b11a4638b706794b5 (diff) |
bring over build fixes from stable branch
Diffstat (limited to 'src/mesa/drivers/dri/common/vblank.h')
-rw-r--r-- | src/mesa/drivers/dri/common/vblank.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/vblank.h b/src/mesa/drivers/dri/common/vblank.h index 718ecd7b1f3..3dc965def1a 100644 --- a/src/mesa/drivers/dri/common/vblank.h +++ b/src/mesa/drivers/dri/common/vblank.h @@ -55,6 +55,10 @@ extern int driWaitForVBlank( const __DRIdrawablePrivate *priv, #include <unistd.h> /* for usleep() */ #include <sched.h> /* for sched_yield() */ +#ifdef linux +#include <sched.h> /* for sched_yield() */ +#endif + #define DO_USLEEP(nr) \ do { \ if (0) fprintf(stderr, "%s: usleep for %u\n", __FUNCTION__, nr ); \ |