From 59b0a2d71143c09e51f4d3c812b5fc97522792bd Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 22 Nov 2023 05:10:02 +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 c27e4f9ee..52882aae2 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c @@ -1206,6 +1206,7 @@ cleanup: return ret; } +#ifdef SDL_INPUT_LINUXEV static void KMSDRM_ReleaseVT(void *userdata) { SDL_VideoDevice *_this = (SDL_VideoDevice *)userdata; @@ -1235,6 +1236,7 @@ static void KMSDRM_AcquireVT(void *userdata) } } } +#endif /* defined SDL_INPUT_LINUXEV */ int KMSDRM_VideoInit(_THIS) {