aboutsummaryrefslogtreecommitdiff
path: root/lib/libpthread/arch/i386
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2004-08-16 03:27:29 +0000
committerDavid Xu <davidxu@FreeBSD.org>2004-08-16 03:27:29 +0000
commita002d437eaf0d15470bc75c142a22ff3d643b030 (patch)
tree9e58ede141be355c38f2c1cd9f7881b2e6134800 /lib/libpthread/arch/i386
parent497c17e0ae22a367a8edddd9d834e640dd10aca3 (diff)
Notes
Diffstat (limited to 'lib/libpthread/arch/i386')
-rw-r--r--lib/libpthread/arch/i386/include/pthread_md.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpthread/arch/i386/include/pthread_md.h b/lib/libpthread/arch/i386/include/pthread_md.h
index 2d4b0e00245b..d208d2ecb686 100644
--- a/lib/libpthread/arch/i386/include/pthread_md.h
+++ b/lib/libpthread/arch/i386/include/pthread_md.h
@@ -31,6 +31,7 @@
#ifndef _PTHREAD_MD_H_
#define _PTHREAD_MD_H_
+#include <stddef.h>
#include <sys/kse.h>
#include <ucontext.h>
@@ -38,6 +39,7 @@ extern int _thr_setcontext(mcontext_t *, intptr_t, intptr_t *);
extern int _thr_getcontext(mcontext_t *);
#define KSE_STACKSIZE 16384
+#define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
#define THR_GETCONTEXT(ucp) _thr_getcontext(&(ucp)->uc_mcontext)
#define THR_SETCONTEXT(ucp) _thr_setcontext(&(ucp)->uc_mcontext, 0, NULL)