Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tools/lkl/lib/posix-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static void thread_exit(void)

static int thread_join(lkl_thread_t tid)
{
if (WARN_PTHREAD(pthread_join(tid, NULL)))
if (WARN_PTHREAD(pthread_join((pthread_t)tid, NULL)))
return -1;
else
return 0;
Expand Down Expand Up @@ -276,7 +276,11 @@ static void panic(void)

static long _gettid(void)
{
#ifdef __FreeBSD__
return (long)pthread_self();
#else
return syscall(SYS_gettid);
#endif
}

struct lkl_host_operations lkl_host_ops = {
Expand Down