Index: uspace/app/tester/thread/thread1.c
===================================================================
--- uspace/app/tester/thread/thread1.c	(revision 582a0b84b0a73672531e7b404a89997af41ba0b9)
+++ uspace/app/tester/thread/thread1.c	(revision 0247bd24eab20736d9bd6ad605a5fffbf6d4fc4c)
@@ -32,4 +32,5 @@
 
 #include <atomic.h>
+#include <errno.h>
 #include <thread.h>
 #include <stdio.h>
@@ -61,5 +62,5 @@
 	TPRINTF("Creating threads");
 	for (i = 0; i < THREADS; i++) {
-		if (thread_create(threadtest, NULL, "threadtest", NULL) < 0) {
+		if (thread_create(threadtest, NULL, "threadtest", NULL) != EOK) {
 			TPRINTF("\nCould not create thread %u\n", i);
 			break;
