Upstream a toaru-related workaround temporarily

This commit is contained in:
K. Lange 2021-04-27 21:42:00 +09:00
parent 300d64495f
commit 567a003731

View File

@ -629,7 +629,7 @@ static void handleSigtrap(int sigNum) {
#endif
static void bindSignalHandlers(void) {
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__toaru__)
struct sigaction sigIntAction;
sigIntAction.sa_handler = handleSigint;
sigemptyset(&sigIntAction.sa_mask);
@ -649,7 +649,10 @@ static void bindSignalHandlers(void) {
NULL);
#else
signal(SIGINT, handleSigint);
# ifndef _WIN32
signal(SIGTRAP, handleSigtrap);
/* No SIGTRAP on windows? */
# endif
#endif
}