More fixup for r290119: Make the ifdef work.
llvm-svn: 290126
This commit is contained in:
parent
115d33cba4
commit
05bf3ec4c4
|
@ -7,7 +7,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if !__APPLE__
|
#ifndef __APPLE__
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ void alloc_func() { mem = (char *)malloc(10); }
|
||||||
|
|
||||||
void *AllocThread(void *context) {
|
void *AllocThread(void *context) {
|
||||||
uint64_t tid;
|
uint64_t tid;
|
||||||
#if __APPLE__
|
#ifdef __APPLE__
|
||||||
pthread_threadid_np(NULL, &tid);
|
pthread_threadid_np(NULL, &tid);
|
||||||
#else
|
#else
|
||||||
tid = gettid();
|
tid = gettid();
|
||||||
|
|
Loading…
Reference in New Issue