summaryrefslogtreecommitdiff
path: root/rts/posix
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-08-03 11:28:19 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-08-03 17:20:29 -0400
commit6ad25367fbd44579591e3c287ea88db618d57891 (patch)
treea579edab7adbeeb0af8dae9c2095fe007fe5bed6 /rts/posix
parent3403c028d69e4a4fae93b2ced95fc58b6fa8aeee (diff)
downloadhaskell-6ad25367fbd44579591e3c287ea88db618d57891.tar.gz
Fix ASSERTS_ENABLED CPP
Diffstat (limited to 'rts/posix')
-rw-r--r--rts/posix/OSThreads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index 980080731f..b05d5cbd03 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -223,7 +223,7 @@ osThreadIsAlive(OSThreadId id STG_UNUSED)
void
initMutex(Mutex* pMut)
{
-#if ASSERTS_ENABLED
+#if defined(ASSERTS_ENABLED)
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_ERRORCHECK);