From e0b45fed06cb7b4b22df91ceb137c3587c0a8403 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Thu, 25 Apr 2024 03:01:33 +0200
Subject: [PATCH] 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.
---
test/testlock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testlock.c b/test/testlock.c
index 4a496b2be0bff..34e9261b0e9ea 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -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