diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 81136bee4daa9..b46e7bfa20f5f 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -770,6 +770,7 @@ TSRM_API void *tsrm_get_ls_cache(void) return tsrm_tls_get(); }/*}}}*/ +#ifdef HAVE_JIT /* Returns offset of tsrm_ls_cache slot from Thread Control Block address */ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void) {/*{{{*/ @@ -820,6 +821,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void) return 0; #endif }/*}}}*/ +#endif TSRM_API bool tsrm_is_main_thread(void) {/*{{{*/ diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index 80d6cbad04435..a50bb1ebbb1a9 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -136,7 +136,9 @@ TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread TSRM_API void *tsrm_set_shutdown_handler(tsrm_shutdown_func_t shutdown_handler); TSRM_API void *tsrm_get_ls_cache(void); +#ifdef HAVE_JIT TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void); +#endif TSRM_API bool tsrm_is_main_thread(void); TSRM_API bool tsrm_is_shutdown(void); TSRM_API const char *tsrm_api_name(void);