From 76978462bbb55eb4b5cfe4d70856e18ed1e21076 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 31 Aug 2018 09:04:13 +0200 Subject: [PATCH] Construct a thread_event only if THREADS_ENABLED * src/thread.c (Fthread_signal): Construct a thread_event only if THREADS_ENABLED. --- src/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/thread.c b/src/thread.c index 78cb2161993..081569f8a38 100644 --- a/src/thread.c +++ b/src/thread.c @@ -875,6 +875,7 @@ If THREAD is the main thread, just the error message is shown. */) if (tstate == current_thread) Fsignal (error_symbol, data); +#ifdef THREADS_ENABLED if (main_thread_p (tstate)) { /* Construct an event. */ @@ -889,6 +890,7 @@ If THREAD is the main thread, just the error message is shown. */) } else +#endif { /* What to do if thread is already signaled? */ /* What if error_symbol is Qnil? */ -- 2.39.5