changeset 75408:5b7720054d45

(SIGNAL_THREAD_CHECK): Use pthread_equal.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 26 Jan 2007 08:36:24 +0000
parents 205d5c1af245
children e6877c92054d
files src/syssignal.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/syssignal.h	Fri Jan 26 08:36:18 2007 +0000
+++ b/src/syssignal.h	Fri Jan 26 08:36:24 2007 +0000
@@ -210,7 +210,7 @@
 #ifdef HAVE_GTK_AND_PTHREAD
 #define SIGNAL_THREAD_CHECK(signo)                                      \
   do {                                                                  \
-    if (pthread_self () != main_thread)                                 \
+    if (!pthread_equal (pthread_self (), main_thread))			\
       {                                                                 \
         /* POSIX says any thread can receive the signal.  On GNU/Linux  \
            that is not true, but for other systems (FreeBSD at least)   \