diff options
Diffstat (limited to 'src/lx_output.c')
-rw-r--r-- | src/lx_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lx_output.c b/src/lx_output.c index cd1809b..6e36426 100644 --- a/src/lx_output.c +++ b/src/lx_output.c @@ -247,10 +247,12 @@ lx_output_destroy(xf86OutputPtr output) output->driver_private = NULL; } +#ifdef RANDR_GET_CRTC_INTERFACE static xf86CrtcPtr lx_output_get_crtc(xf86OutputPtr output) { return output->crtc; } +#endif static const xf86OutputFuncsRec lx_output_funcs = { @@ -265,7 +267,9 @@ static const xf86OutputFuncsRec lx_output_funcs = { .commit = lx_output_commit, .detect = lx_output_detect, .get_modes = lx_output_get_modes, +#ifdef RANDR_GET_CRTC_INTERFACE .get_crtc = lx_output_get_crtc, +#endif .set_property = lx_output_set_property, .destroy = lx_output_destroy, }; |