diff --git a/wrapper_c/dcc_main.c b/wrapper_c/dcc_main.c index 472877b..f05f173 100644 --- a/wrapper_c/dcc_main.c +++ b/wrapper_c/dcc_main.c @@ -39,6 +39,15 @@ # include #endif +#ifdef __APPLE__ +#include +static long gettid(void) { + uint64_t tid; + pthread_threadid_np(NULL, &tid); + return (long)tid; +} +#endif + static int debug_level = 0; static FILE *debug_stream = NULL;