mirror of https://github.com/libsdl-org/SDL
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:
parent
d29b861a76
commit
e0b45fed06
|
@ -102,7 +102,7 @@ Run(void *data)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
static Uint32 hit_timeout(Uint32 interval, void *param) {
|
static Uint32 hit_timeout(Uint32 interval, void *param) {
|
||||||
SDL_Log("Hit timeout! Sending SIGINT!");
|
SDL_Log("Hit timeout! Sending SIGINT!");
|
||||||
kill(0, SIGINT);
|
(void)raise(SIGINT);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue