summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authortgore <tim.gore@intel.com>2014-03-31 11:55:40 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-31 14:09:29 +0200
commit22bc1a287eb6c0e7b89001424c895dd776f9a28b (patch)
tree288c3283ccb59f9ef88e6c418fe1da956d903129 /lib/igt_fb.h
parent4fdca96066e36cb4d41019e58c8387e0a5e0f2f5 (diff)
intel-gpu-tools: avoid include of cairo.h on Android builds
A recent commit means igt_debugfs.c now needs to include igt_kms.h, which in turn includes igt_fb.h and hence cairo.h. We need to avoid this inclusion of cairo.h when building for Android, (until we have a cairo port) so I have added a #ifndef around it. Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index 5f0ff51c..7242f9bd 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -28,7 +28,12 @@
#ifndef __IGT_FB_H__
#define __IGT_FB_H__
+#ifndef ANDROID
#include <cairo.h>
+#else
+typedef struct _cairo_surface cairo_surface_t;
+typedef struct _cairo cairo_t;
+#endif
#include <drm_fourcc.h>
#include <xf86drmMode.h>