testlock.c: replace function call kill with raise

Replacing function call `kill(0, SIGINT);` with `(void)raise(SIGINT);` in file test/testlock.c.
The `kill()` function is not available on Unix systems when compiling without system extensions enabled.
This commit is contained in:
Petar Popovic 2024-04-25 03:01:33 +02:00 committed by Ryan C. Gordon
parent d29b861a76
commit e0b45fed06
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ Run(void *data)
#ifndef _WIN32
static Uint32 hit_timeout(Uint32 interval, void *param) {
SDL_Log("Hit timeout! Sending SIGINT!");
kill(0, SIGINT);
(void)raise(SIGINT);
return 0;
}
#endif