From 5f36bf12f93f480f1f957b884c8f7f69da64648c Mon Sep 17 00:00:00 2001 From: Markus Minichmayr Date: Mon, 10 Oct 2022 19:01:06 +0200 Subject: CMAKE option LIBICAL_SYNC_MODE_THREADLOCAL: Allow compiling all global variables with thread-local storage, thus avoiding the need for synchronization. --- src/libical/icalerror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libical/icalerror.c') diff --git a/src/libical/icalerror.c b/src/libical/icalerror.c index 9692bd1e..d8a85b4c 100644 --- a/src/libical/icalerror.c +++ b/src/libical/icalerror.c @@ -22,7 +22,7 @@ #include #endif -#if defined(HAVE_PTHREAD) +#if ICAL_SYNC_MODE == ICAL_SYNC_MODE_PTHREAD #include static pthread_key_t icalerrno_key; -- cgit v1.2.1