diff options
Diffstat (limited to 'rts/posix/OSThreads.c')
-rw-r--r-- | rts/posix/OSThreads.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index 43d2cc9b62..e2471a223c 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -62,7 +62,7 @@ #include <sys/cpuset.h> #endif -#ifdef HAVE_UNISTD_H +#if defined(HAVE_UNISTD_H) #include <unistd.h> #endif @@ -70,11 +70,11 @@ #include <mach/mach.h> #endif -#ifdef HAVE_SIGNAL_H +#if defined(HAVE_SIGNAL_H) # include <signal.h> #endif -#ifdef HAVE_NUMA_H +#if defined(HAVE_NUMA_H) #include <numa.h> #endif @@ -137,7 +137,7 @@ createOSThread (OSThreadId* pId, char *name STG_UNUSED, int result = pthread_create(pId, NULL, (void *(*)(void *))startProc, param); if (!result) { pthread_detach(*pId); -#ifdef HAVE_PTHREAD_SETNAME_NP +#if defined(HAVE_PTHREAD_SETNAME_NP) pthread_setname_np(*pId, name); #endif } |