Fix windows build.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4416 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-08-22 16:49:42 +00:00
parent 09ad4f0320
commit 8c7bd7dc11

View File

@ -638,8 +638,11 @@ int main(int argc, char* argv[])
#endif #endif
if (use_error_handler) if (use_error_handler)
{ {
if (signal(SIGSEGV, _error_handler) == SIG_ERR || if (
signal(SIGSYS, _error_handler) == SIG_ERR) #if !defined(_WIN32)
signal(SIGSYS, _error_handler) == SIG_ERR ||
#endif
signal(SIGSEGV, _error_handler) == SIG_ERR)
{ {
perror("signal"); perror("signal");
} }