diff options
| author | Paul Eggert | 2017-12-24 11:29:36 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-12-24 11:30:20 -0800 |
| commit | d87bdd2f8a5da117e5e4d7ea0c26de0f91c424f2 (patch) | |
| tree | baa8c9d37684868e4563a840b811c8a7f57074b5 | |
| parent | 9982be8f015facb4a615d7a94b10c7078c1a8e7c (diff) | |
| download | emacs-d87bdd2f8a5da117e5e4d7ea0c26de0f91c424f2.tar.gz emacs-d87bdd2f8a5da117e5e4d7ea0c26de0f91c424f2.zip | |
Make main_thread_id private
* src/sysdep.c (main_thread_id) [FORWARD_SIGNAL_TO_MAIN_THREAD]:
Now static.
| -rw-r--r-- | src/sysdep.c | 2 | ||||
| -rw-r--r-- | src/syssignal.h | 1 |
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 |
| 1674 | pthread_t main_thread_id; | 1674 | static 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> |
| 35 | extern 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 |