Commit Diff


commit - 6062e8ea890c053733ec0ad3387a40da18a45cda
commit + 3da8ef855d7d7b3da96a9f1cba55df276e112f11
blob - 52159fccda01040bb4cb1a1a48e126350a420f5c
blob + cbf77a99b234b7a155644a3abe25adda577f1a8d
--- tog/tog.c
+++ tog/tog.c
@@ -38,6 +38,7 @@
 #include <pthread.h>
 #include <libgen.h>
 #include <regex.h>
+#include <sched.h>
 
 #include "got_version.h"
 #include "got_error.h"
@@ -841,7 +842,7 @@ view_input(struct tog_view **new, int *done, struct to
 		if (errcode)
 			return got_error_set_errno(errcode,
 			    "pthread_mutex_unlock");
-		pthread_yield();
+		sched_yield();
 		errcode = pthread_mutex_lock(&tog_mutex);
 		if (errcode)
 			return got_error_set_errno(errcode,