core thread: Don't include core.h from thread.h
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 8 Apr 2011 22:24:20 +0000 (15:24 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 10 Apr 2011 01:27:07 +0000 (18:27 -0700)
core.h brings in a lot of symbols and causes conflicts when
included into lwip, in particular conflicts on the symbol
lfree.

So do the simple thing and simplify what thread.h brings in to
reduce the change of symbol conflicts.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
core/include/thread.h
core/thread/exit_thread.c

index db4ef5e..cdc3a90 100644 (file)
@@ -3,7 +3,8 @@
 
 #include <stddef.h>
 #include <inttypes.h>
-#include "core.h"
+#include <stdbool.h>
+#include <timer.h>
 
 struct semaphore;
 
index a5f12af..0aadfb6 100644 (file)
@@ -1,5 +1,6 @@
 #include "thread.h"
 #include <limits.h>
+#include <klibc/compiler.h>
 
 __noreturn __exit_thread(void)
 {