[gnome-desktop] bgo#643940 - Include Xlib.h so we can build when RANDR is not available



commit 27fb2967f620cbc82da57b9b5eea7700218b6620
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Mar 29 11:26:18 2011 -0600

    bgo#643940 - Include Xlib.h so we can build when RANDR is not available
    
    The RANDR headers include the Xlib paraphernalia, but we don't include those
    headers when gnome-desktop is configured to not use RANDR.  So, instead we
    include Xlib.h so that we'll have defined types for Display, Screen, etc.
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 libgnome-desktop/gnome-rr-private.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-private.h b/libgnome-desktop/gnome-rr-private.h
index af9b397..b66cc29 100644
--- a/libgnome-desktop/gnome-rr-private.h
+++ b/libgnome-desktop/gnome-rr-private.h
@@ -1,6 +1,8 @@
 #ifndef GNOME_RR_PRIVATE_H
 #define GNOME_RR_PRIVATE_H
 
+#include <X11/Xlib.h>
+
 #ifdef HAVE_RANDR
 #include <X11/extensions/Xrandr.h>
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]