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 d460d7a..718ecd7 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 {                                                                        \