Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions wrapper_c/dcc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
# include <sys/prctl.h>
#endif

#ifdef __APPLE__
#include <pthread.h>
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;

Expand Down