mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
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>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user