forked from pool/ncurses
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=43
This commit is contained in:
parent
be021c60fa
commit
e913e16e97
@ -1,25 +0,0 @@
|
|||||||
--- ncurses/curses.priv.h
|
|
||||||
+++ ncurses/curses.priv.h 2010-10-12 11:56:43.640426282 +0200
|
|
||||||
@@ -490,6 +490,7 @@ extern NCURSES_EXPORT(int) _nc_mutex_unl
|
|
||||||
#ifdef USE_PTHREADS
|
|
||||||
# if USE_WEAK_SYMBOLS
|
|
||||||
weak_symbol(pthread_sigmask);
|
|
||||||
+weak_symbol(pthread_kill);
|
|
||||||
weak_symbol(pthread_self);
|
|
||||||
weak_symbol(pthread_equal);
|
|
||||||
weak_symbol(pthread_mutex_init);
|
|
||||||
--- ncurses/tty/lib_tstp.c
|
|
||||||
+++ ncurses/tty/lib_tstp.c 2010-10-12 12:02:27.856426710 +0200
|
|
||||||
@@ -288,7 +288,11 @@ sigwinch(int sig GCC_UNUSED)
|
|
||||||
_nc_globals.have_sigwinch = 1;
|
|
||||||
# if USE_PTHREADS_EINTR
|
|
||||||
if (_nc_globals.read_thread) {
|
|
||||||
- if (!pthread_equal(pthread_self(), _nc_globals.read_thread))
|
|
||||||
+ if (
|
|
||||||
+# if USE_WEAK_SYMBOLS
|
|
||||||
+ (pthread_self) && (pthread_kill) && (pthread_equal) &&
|
|
||||||
+# endif
|
|
||||||
+ !pthread_equal(pthread_self(), _nc_globals.read_thread))
|
|
||||||
pthread_kill(_nc_globals.read_thread, SIGWINCH);
|
|
||||||
_nc_globals.read_thread = 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user