diff options
Diffstat (limited to 'sys/arch/amd64/include')
| -rw-r--r-- | sys/arch/amd64/include/mcontext.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/mcontext.h b/sys/arch/amd64/include/mcontext.h index e8790d78c13..0c747e149ec 100644 --- a/sys/arch/amd64/include/mcontext.h +++ b/sys/arch/amd64/include/mcontext.h @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.19 2018/02/15 15:53:56 kamil Exp $ */ +/* $NetBSD: mcontext.h,v 1.20 2019/12/27 00:32:16 kamil Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -84,6 +84,11 @@ typedef struct { #define __UCONTEXT_SIZE 784 +#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ + defined(__LIBPTHREAD_SOURCE__) +#include <sys/tls.h> + +__BEGIN_DECLS static __inline void * __lwp_getprivate_fast(void) { @@ -93,6 +98,9 @@ __lwp_getprivate_fast(void) return __tmp; } +__END_DECLS + +#endif #ifdef _KERNEL |
