From 819c3db73acf5246cd332ad3062c61b7a2e8ee68 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 5 Apr 2017 12:01:12 -0400 Subject: Revert "Enable new warning for fragile/incorrect CPP #if usage" This is causing too much platform dependent breakage at the moment. We will need a more rigorous testing strategy before this can be merged again. This reverts commit 7e340c2bbf4a56959bd1e95cdd1cfdb2b7e537c2. --- rts/posix/OSThreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rts/posix/OSThreads.c') diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index 465c8675a3..45f394208f 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -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 HAVE_PTHREAD_SETNAME_NP pthread_setname_np(*pId, name); #endif } -- cgit v1.2.1