From d9d13bd55f529192511c4479fb126d10398dc2ef Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 13 Oct 2004 19:51:31 +0000 Subject: [PATCH] Avoid redefined symbol warning when libcaps uses thread.h with its own stack specification. Submitted-by: Eirik Nygaard --- sys/sys/thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/sys/thread.h b/sys/sys/thread.h index a5b6bedaa1..a52b436acc 100644 --- a/sys/sys/thread.h +++ b/sys/sys/thread.h @@ -7,7 +7,7 @@ * Types which must already be defined when this header is included by * userland: struct md_thread * - * $DragonFly: src/sys/sys/thread.h,v 1.58 2004/09/14 07:41:49 dillon Exp $ + * $DragonFly: src/sys/sys/thread.h,v 1.59 2004/10/13 19:51:31 dillon Exp $ */ #ifndef _SYS_THREAD_H_ @@ -304,7 +304,9 @@ struct thread { #define TDPRI_MASK 31 #define TDPRI_CRIT 32 /* high bits of td_pri used for crit */ +#ifdef _KERNEL #define LWKT_THREAD_STACK (UPAGES * PAGE_SIZE) +#endif #define CACHE_NTHREADS 6 -- 2.41.0