Dirk Mueller
22620fd79d
fix for bnc#995148 with comments fixed OBS-URL: https://build.opensuse.org/request/show/425239 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=257
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
# bnc#995148 cscope hangs indefinitely after control-z
|
|
# recurisve macro definition of sigprocmask
|
|
|
|
--- ncurses/tinfo/lib_data.c 2016-09-03 11:37:20.223406956 -0500
|
|
+++ ncurses/tinfo/lib_data.c 2016-09-03 11:39:07.885069978 -0500
|
|
@@ -371,7 +371,7 @@ _nc_sigprocmask(int how, const sigset_t
|
|
if ((pthread_sigmask))
|
|
return pthread_sigmask(how, newmask, oldmask);
|
|
else
|
|
- return sigprocmask(how, newmask, oldmask);
|
|
+ return (sigprocmask)(how, newmask, oldmask);
|
|
}
|
|
#endif
|
|
#endif /* USE_PTHREADS */
|
|
|
|
--- ncurses/curses.priv.h.orig 2016-09-04 18:52:55.639691452 -0500
|
|
+++ ncurses/curses.priv.h 2016-09-04 18:53:34.248200946 -0500
|
|
@@ -561,7 +561,7 @@ weak_symbol(pthread_mutexattr_settype);
|
|
weak_symbol(pthread_mutexattr_init);
|
|
extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *);
|
|
# undef sigprocmask
|
|
-# define sigprocmask _nc_sigprocmask
|
|
+# define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c)
|
|
# endif
|
|
#endif
|
|
|
|
@@ -581,7 +581,7 @@ weak_symbol(pthread_self);
|
|
weak_symbol(pthread_equal);
|
|
extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *);
|
|
# undef sigprocmask
|
|
-# define sigprocmask _nc_sigprocmask
|
|
+# define sigprocmask(a, b, c) _nc_sigprocmask(a, b, c)
|
|
# endif
|
|
#endif /* USE_PTHREADS_EINTR */
|
|
|