SDL: kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV (86d77)

From 86d77bbcc5b64c35dce843de93c4f1098f16f2da Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 22 Nov 2023 01:56:10 +0300
Subject: [PATCH] kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to
 SDL_INPUT_LINUXEV

---
 src/video/kmsdrm/SDL_kmsdrmvideo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index f603707131ef..ac28f6e16847 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c
@@ -1222,6 +1222,7 @@ int KMSDRM_CreateSurfaces(SDL_VideoDevice *_this, SDL_Window *window)
     return ret;
 }
 
+#ifdef SDL_INPUT_LINUXEV
 static void KMSDRM_ReleaseVT(void *userdata)
 {
     SDL_VideoDevice *_this = (SDL_VideoDevice *)userdata;
@@ -1251,6 +1252,7 @@ static void KMSDRM_AcquireVT(void *userdata)
         }
     }
 }
+#endif /* defined SDL_INPUT_LINUXEV */
 
 int KMSDRM_VideoInit(SDL_VideoDevice *_this)
 {