diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2008-11-23 21:21:30 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2010-01-25 22:34:59 +0100 |
commit | c229fbc23a60f8824632dd2f2a81f0c8fb51df98 (patch) | |
tree | f1fb320c059c7b1b6a77a7811e4678e11c1f7d82 /hurd/hurd/threadvar.h | |
parent | 1056e10d6c05cc5d8658bf6fb620b2a1ca6c07ce (diff) |
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
Diffstat (limited to 'hurd/hurd/threadvar.h')
-rw-r--r-- | hurd/hurd/threadvar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hurd/hurd/threadvar.h b/hurd/hurd/threadvar.h index a0535f7596..dd4a59cf0d 100644 --- a/hurd/hurd/threadvar.h +++ b/hurd/hurd/threadvar.h @@ -82,6 +82,8 @@ enum __hurd_threadvar_index extern unsigned long int *__hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index, void *__sp); + +#ifdef __USE_EXTERN_INLINES _HURD_THREADVAR_H_EXTERN_INLINE unsigned long int * __hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index, void *__sp) @@ -93,6 +95,7 @@ __hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index, : (unsigned long int *) ((__stack & __hurd_threadvar_stack_mask) + __hurd_threadvar_stack_offset))[__index]; } +#endif #include <machine-sp.h> /* Define __thread_stack_pointer. */ @@ -106,12 +109,14 @@ __hurd_threadvar_location (enum __hurd_threadvar_index __index) __THROW the same stack frame by different threads. */ __attribute__ ((__const__)); +#ifdef __USE_EXTERN_INLINES _HURD_THREADVAR_H_EXTERN_INLINE unsigned long int * __hurd_threadvar_location (enum __hurd_threadvar_index __index) { return __hurd_threadvar_location_from_sp (__index, __thread_stack_pointer ()); } +#endif #endif /* hurd/threadvar.h */ |