mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.1544: recent glibc marks sigset() as a deprecated
Problem: Recent glibc marks sigset() as a deprecated. Solution: Use sigaction() in mch_signal() if possible. (Ozaki Kiichi, closes #12373)
This commit is contained in:
@@ -242,6 +242,9 @@
|
||||
#if (defined(UNIX) || defined(VMS)) \
|
||||
&& (!defined(MACOS_X) || defined(HAVE_CONFIG_H))
|
||||
# include "os_unix.h" // bring lots of system header files
|
||||
#else
|
||||
// For all non-Unix systems: use old-fashioned signal().
|
||||
# define mch_signal(signum, sighandler) signal(signum, sighandler)
|
||||
#endif
|
||||
|
||||
// Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter
|
||||
|
Reference in New Issue
Block a user