aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2017-12-24 11:29:36 -0800
committerPaul Eggert2017-12-24 11:30:20 -0800
commitd87bdd2f8a5da117e5e4d7ea0c26de0f91c424f2 (patch)
treebaa8c9d37684868e4563a840b811c8a7f57074b5 /src
parent9982be8f015facb4a615d7a94b10c7078c1a8e7c (diff)
downloademacs-d87bdd2f8a5da117e5e4d7ea0c26de0f91c424f2.tar.gz
emacs-d87bdd2f8a5da117e5e4d7ea0c26de0f91c424f2.zip
Make main_thread_id private
* src/sysdep.c (main_thread_id) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Now static.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c2
-rw-r--r--src/syssignal.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index e223a67787d..9522aa4b04b 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1671,7 +1671,7 @@ emacs_sigaction_init (struct sigaction *action, signal_handler_t handler)
1671} 1671}
1672 1672
1673#ifdef FORWARD_SIGNAL_TO_MAIN_THREAD 1673#ifdef FORWARD_SIGNAL_TO_MAIN_THREAD
1674pthread_t main_thread_id; 1674static pthread_t main_thread_id;
1675#endif 1675#endif
1676 1676
1677/* SIG has arrived at the current process. Deliver it to the main 1677/* SIG has arrived at the current process. Deliver it to the main
diff --git a/src/syssignal.h b/src/syssignal.h
index 61e1c5f60e8..b43a2562e3d 100644
--- a/src/syssignal.h
+++ b/src/syssignal.h
@@ -32,7 +32,6 @@ extern void unblock_tty_out_signal (sigset_t const *);
32 32
33#ifdef HAVE_PTHREAD 33#ifdef HAVE_PTHREAD
34#include <pthread.h> 34#include <pthread.h>
35extern pthread_t main_thread_id;
36/* If defined, asynchronous signals delivered to a non-main thread are 35/* If defined, asynchronous signals delivered to a non-main thread are
37 forwarded to the main thread. */ 36 forwarded to the main thread. */
38#define FORWARD_SIGNAL_TO_MAIN_THREAD 37#define FORWARD_SIGNAL_TO_MAIN_THREAD