summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/amd64/include/pthread_md.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/arch/amd64/include/pthread_md.h')
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h
index 86af4af..4f903c5 100644
--- a/lib/libpthread/arch/amd64/include/pthread_md.h
+++ b/lib/libpthread/arch/amd64/include/pthread_md.h
@@ -32,12 +32,14 @@
#ifndef _PTHREAD_MD_H_
#define _PTHREAD_MD_H_
+#include <stddef.h>
#include <sys/types.h>
#include <sys/kse.h>
#include <machine/sysarch.h>
#include <ucontext.h>
#define KSE_STACKSIZE 16384
+#define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
#define THR_GETCONTEXT(ucp) \
(void)_amd64_save_context(&(ucp)->uc_mcontext)
OpenPOWER on IntegriCloud