compat: mingw: fix signal numbers

This commit is contained in:
~locpyl-tidnyd 2021-05-06 12:34:23 +03:00
parent a9d4306026
commit 2adcdaab1f
2 changed files with 6 additions and 7 deletions

View File

@ -9,10 +9,9 @@ int utimes(const char *path, const struct timeval times[2]);
int kill(pid_t pid, int signum);
#define SIGALRM (NSIG+0)
#define SIGVTALRM (NSIG+1)
#define SIGINFO (NSIG+2)
#define SIGUSR1 (NSIG+3)
#define SIG_COUNT (NSIG+4)
#define SIGUSR1 10
#define SIGALRM 14
#define SIGVTALRM 26
#define SIG_COUNT 32
#endif//_MINGW_IO_H

View File

@ -544,7 +544,7 @@ _king_sign_init(void)
// handle SIGINFO (if available)
//
#ifndef U3_OS_linux
#ifdef SIGINFO
{
u3_usig* sig_u;
@ -600,7 +600,7 @@ _king_sign_cb(uv_signal_t* sil_u, c3_i num_i)
// fallthru if defined
//
#ifndef U3_OS_linux
#ifdef SIGINFO
case SIGINFO:
#endif
case SIGUSR1: {