include sched.h to get sched_yield() prototype
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 18 Jan 2004 17:19:05 +0000 (17:19 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 18 Jan 2004 17:19:05 +0000 (17:19 +0000)
src/mesa/drivers/dri/common/vblank.h

index d460d7a84ad3a1a9e5ea10b667d491a0939feaf8..718ecd7b1f3470e619b3cbefc638ad60a2c7a785 100644 (file)
@@ -53,6 +53,7 @@ extern int driWaitForVBlank( const __DRIdrawablePrivate *priv,
 
 #undef usleep
 #include <unistd.h>  /* for usleep() */
+#include <sched.h>   /* for sched_yield() */
 
 #define DO_USLEEP(nr)                                                  \
    do {                                                                        \