summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-surface-core.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-25 16:45:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-25 16:45:03 +0000
commit123bdb086ad9c5725a51791458d31309c69a3f41 (patch)
treec5ed0ea366d91292a9f35f14fcc3a6250eef0d99 /src/cairo-xcb-surface-core.c
parente1b3330376c173633e146eb6cf578592d424e4d5 (diff)
downloadcairo-123bdb086ad9c5725a51791458d31309c69a3f41.tar.gz
xcb: Make shm optional
Trying to build xcb on a system without SHM wrapped by xcb. The right answer would be to build libxcb-shm. The quick answer is to compile out shm support.
Diffstat (limited to 'src/cairo-xcb-surface-core.c')
-rw-r--r--src/cairo-xcb-surface-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-xcb-surface-core.c b/src/cairo-xcb-surface-core.c
index 6f1002a8f..2788bdf2d 100644
--- a/src/cairo-xcb-surface-core.c
+++ b/src/cairo-xcb-surface-core.c
@@ -153,6 +153,7 @@ _cairo_xcb_shm_image_create (cairo_xcb_connection_t *connection,
cairo_xcb_shm_info_t *shm_info = NULL;
cairo_status_t status;
+#if CAIRO_HAS_XCB_SHM_FUNCTIONS
if ((connection->flags & CAIRO_XCB_HAS_SHM)) {
size_t size, stride;
@@ -185,6 +186,7 @@ _cairo_xcb_shm_image_create (cairo_xcb_connection_t *connection,
}
}
}
+#endif
if (image == NULL) {
image = _cairo_image_surface_create_with_pixman_format (NULL,