[cairo-commit] src/cairo-xcb-surface.c

Chris Wilson ickle at kemper.freedesktop.org
Sun Feb 21 01:01:08 PST 2010


 src/cairo-xcb-surface.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 20f8f17f0e494a57a6b413be76f9333b42d88014
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Sat Feb 20 21:42:23 2010 +0100

    xcb: Fix compilation without dri2
    
    XCB should be able to compile without xcb-drm. To do so it
    can include xcb/dri2.h only if xcb-drm is enabled.

diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index 5008fe7..82c3114 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -43,7 +43,9 @@
 #include "cairo-xcb.h"
 #include "cairo-xcb-private.h"
 
+#if CAIRO_HAS_XCB_DRM_FUNCTIONS
 #include <xcb/dri2.h>
+#endif
 
 #define AllPlanes ((unsigned) -1)
 #define CAIRO_ASSUME_PIXMAP 20


More information about the cairo-commit mailing list