kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV

This commit is contained in:
Ozkan Sezer 2023-11-22 05:10:02 +03:00
parent dcd21d042f
commit 59b0a2d711

View file

@ -1206,6 +1206,7 @@ cleanup:
return ret; return ret;
} }
#ifdef SDL_INPUT_LINUXEV
static void KMSDRM_ReleaseVT(void *userdata) static void KMSDRM_ReleaseVT(void *userdata)
{ {
SDL_VideoDevice *_this = (SDL_VideoDevice *)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) int KMSDRM_VideoInit(_THIS)
{ {