summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2016-03-01 17:03:44 +0100
committerAdam Jackson <ajax@redhat.com>2016-03-01 11:25:59 -0500
commitac4d8c7cee13947b688ebb26035f06f7744db201 (patch)
tree8b0e77dab19aa62acdee02cde60a5bbf9df5f87f /include
parent9c88cb9b059111e0531852f3fa8fa571c0306f57 (diff)
vidmode: build without xf86vidmodeproto
git commit f175cf45: vidmode: move to a separate library of its own introduced a regression where the xserver would not build when xf86vidmodeproto is not installed even if the configure option "--disable-xf86vidmode" is specified. Fix build failure when xf86vidmodeproto is not installed. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vidmodestr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vidmodestr.h b/include/vidmodestr.h
index 3a4418501..b47daa779 100644
--- a/include/vidmodestr.h
+++ b/include/vidmodestr.h
@@ -133,8 +133,10 @@ typedef struct {
VidModeGetGammaRampSizeProcPtr GetGammaRampSize;
} VidModeRec, *VidModePtr;
+#ifdef XF86VIDMODE
void VidModeAddExtension(Bool allow_non_local);
VidModePtr VidModeGetPtr(ScreenPtr pScreen);
VidModePtr VidModeInit(ScreenPtr pScreen);
+#endif /* XF86VIDMODE */
#endif