]> git.eshelyaron.com Git - emacs.git/commitdiff
Make main_thread_id private
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Dec 2017 19:29:36 +0000 (11:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Dec 2017 19:30:20 +0000 (11:30 -0800)
* src/sysdep.c (main_thread_id) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Now static.

src/sysdep.c
src/syssignal.h

index e223a67787ded30d7ce2d14664683023e34f6d99..9522aa4b04b87a4b7e8797a90a9041ff13bb5106 100644 (file)
@@ -1671,7 +1671,7 @@ emacs_sigaction_init (struct sigaction *action, signal_handler_t handler)
 }
 
 #ifdef FORWARD_SIGNAL_TO_MAIN_THREAD
-pthread_t main_thread_id;
+static pthread_t main_thread_id;
 #endif
 
 /* SIG has arrived at the current process.  Deliver it to the main
index 61e1c5f60e8ebf5ee9be7a10ebd89c3fe1990e75..b43a2562e3d335da9a16ddc95bcf24516829da64 100644 (file)
@@ -32,7 +32,6 @@ extern void unblock_tty_out_signal (sigset_t const *);
 
 #ifdef HAVE_PTHREAD
 #include <pthread.h>
-extern pthread_t main_thread_id;
 /* If defined, asynchronous signals delivered to a non-main thread are
    forwarded to the main thread.  */
 #define FORWARD_SIGNAL_TO_MAIN_THREAD