[gnome-desktop] bgo#643940 - Don't build some RANDR code if RANDR is not available
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] bgo#643940 - Don't build some RANDR code if RANDR is not available
- Date: Mon, 7 Mar 2011 18:45:00 +0000 (UTC)
commit f89d8a582abbb79898a93d26a8c0f52f74b20bd2
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Mar 7 13:00:51 2011 -0600
bgo#643940 - Don't build some RANDR code if RANDR is not available
Signed-off-by: Federico Mena Quintero <federico gnome org>
libgnome-desktop/gnome-rr.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 6208123..4a9d98e 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -947,6 +947,7 @@ gnome_rr_screen_get_timestamps (GnomeRRScreen *screen,
static gboolean
force_timestamp_update (GnomeRRScreen *screen)
{
+#ifdef HAVE_RANDR
GnomeRRScreenPrivate *priv = screen->priv;
GnomeRRCrtc *crtc;
XRRCrtcInfo *current_info;
@@ -989,6 +990,9 @@ force_timestamp_update (GnomeRRScreen *screen)
timestamp_updated = TRUE;
out:
return timestamp_updated;
+#else
+ return FALSE;
+#endif
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]