# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1210581013 0 # Node ID 2143d86d5d7c1bbd8f514824d88f7516c0e8c1c6 # Parent 361a7f0f25404eb119cd0e209d007fd1ee2a0a16 (main_thread): Conditionalize on FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD. (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it. diff -r 361a7f0f2540 -r 2143d86d5d7c src/emacs.c --- a/src/emacs.c Sat May 10 13:06:33 2008 +0000 +++ b/src/emacs.c Mon May 12 08:30:13 2008 +0000 @@ -353,10 +353,10 @@ void (*fatal_error_signal_hook) P_ ((void)); -#ifdef HAVE_GTK_AND_PTHREAD -/* When compiled with GTK and running under Gnome, multiple threads meay be - created. Keep track of our main thread to make sure signals are delivered - to it (see syssignal.h). */ +#ifdef FORWARD_SIGNAL_TO_MAIN_THREAD +/* When compiled with GTK and running under Gnome, or Carbon under Mac + OS X, multiple threads may be created. Keep track of our main + thread to make sure signals are delivered to it (see syssignal.h). */ pthread_t main_thread; #endif @@ -1031,9 +1031,9 @@ # endif /* not SYNC_INPUT */ #endif /* not SYSTEM_MALLOC */ -#ifdef HAVE_GTK_AND_PTHREAD +#ifdef FORWARD_SIGNAL_TO_MAIN_THREAD main_thread = pthread_self (); -#endif /* HAVE_GTK_AND_PTHREAD */ +#endif /* FORWARD_SIGNAL_TO_MAIN_THREAD */ #if defined (MSDOS) || defined (WINDOWSNT) /* We do all file input/output as binary files. When we need to translate