Index: kernel/generic/include/proc/thread.h
===================================================================
--- kernel/generic/include/proc/thread.h	(revision 90efa3b9570ec6f523c45b1a178410890295d3ec)
+++ kernel/generic/include/proc/thread.h	(revision deacd722f7dca626637926215ebe69ffd2fd67f5)
@@ -225,5 +225,5 @@
 
 #ifndef thread_create_arch
-extern void thread_create_arch(thread_t *);
+extern errno_t thread_create_arch(thread_t *, thread_flags_t);
 #endif
 
