mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-10 00:22:33 +00:00
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:
committed by
Ryan C. Gordon
parent
d29b861a76
commit
e0b45fed06
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user