kmsdrm: restrict KMSDRM_ReleaseVT/KMSDRM_AcquireVT to SDL_INPUT_LINUXEV

This commit is contained in:
Ozkan Sezer 2023-11-22 01:56:10 +03:00
parent 94ad1a4ae4
commit 86d77bbcc5
1 changed files with 2 additions and 0 deletions

View File

@ -1222,6 +1222,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;
@ -1251,6 +1252,7 @@ static void KMSDRM_AcquireVT(void *userdata)
} }
} }
} }
#endif /* defined SDL_INPUT_LINUXEV */
int KMSDRM_VideoInit(SDL_VideoDevice *_this) int KMSDRM_VideoInit(SDL_VideoDevice *_this)
{ {