SDL: test/checkkeysthreads: build fixes, and add to os2 makefile.

From 37b093eaf2f48171c3633039118cb6369c6992cf Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 5 Jun 2021 00:05:56 +0300
Subject: [PATCH] test/checkkeysthreads: build fixes, and add to os2 makefile.

---
 test/Makefile.os2       | 1 +
 test/checkkeysthreads.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/Makefile.os2 b/test/Makefile.os2
index b85c52ceb7..fe5ff6d6de 100644
--- a/test/Makefile.os2
+++ b/test/Makefile.os2
@@ -11,6 +11,7 @@ TARGETS = testatomic.exe testdisplayinfo.exe testbounds.exe testdraw2.exe &
           testshader.exe testshape.exe testsprite2.exe testspriteminimal.exe &
           teststreaming.exe testthread.exe testtimer.exe testver.exe &
           testviewport.exe testwm2.exe torturethread.exe checkkeys.exe &
+          checkkeysthreads.exe &
           controllermap.exe testhaptic.exe testqsort.exe testresample.exe &
           testaudioinfo.exe testaudiocapture.exe loopwave.exe loopwavequeue.exe &
           testyuv.exe testgl2.exe testvulkan.exe testnative.exe testautomation.exe
diff --git a/test/checkkeysthreads.c b/test/checkkeysthreads.c
index b4091ca039..1d6c13a682 100644
--- a/test/checkkeysthreads.c
+++ b/test/checkkeysthreads.c
@@ -203,7 +203,7 @@ loop()
 }
 
 /* Very simple thread - counts 0 to 9 delaying 50ms between increments */
-static int ping_thread(void *ptr)
+static int SDLCALL ping_thread(void *ptr)
 {
     int cnt;
     SDL_Event sdlevent;
@@ -222,6 +222,7 @@ int
 main(int argc, char *argv[])
 {
     SDL_Window *window;
+    SDL_Thread *thread;
 
     /* Enable standard application logging */
     SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
@@ -256,7 +257,6 @@ main(int argc, char *argv[])
     /* Watch keystrokes */
     done = 0;
 
-    SDL_Thread *thread;
     thread = SDL_CreateThread(ping_thread, "PingThread", (void *)NULL);
 
 #ifdef __EMSCRIPTEN__