]> git.eshelyaron.com Git - emacs.git/commitdiff
Construct a thread_event only if THREADS_ENABLED
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 31 Aug 2018 07:04:13 +0000 (09:04 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 31 Aug 2018 07:04:13 +0000 (09:04 +0200)
* src/thread.c (Fthread_signal): Construct a thread_event only if
THREADS_ENABLED.

src/thread.c

index 78cb21619934cb7a8dada3195f4d06f0f8802fb3..081569f8a38c72c7103baf4577b267d8f84c9138 100644 (file)
@@ -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?  */