From 68a74eb31f139ad285a49451cf2ca8271c54f9bb Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Mon, 1 Dec 2014 01:46:20 +0800 Subject: fix building issues of 64-bit targets Just change the 'data' field of gralloc_drm_handle_t to be a pointer to struct gralloc_drm_bo_t. Fix some warnings as well. --- gralloc_drm_handle.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gralloc_drm_handle.h') diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h index f7b03b2..7fc4746 100644 --- a/gralloc_drm_handle.h +++ b/gralloc_drm_handle.h @@ -31,6 +31,8 @@ extern "C" { #endif +struct gralloc_drm_bo_t; + struct gralloc_drm_handle_t { native_handle_t base; @@ -50,7 +52,7 @@ struct gralloc_drm_handle_t { int stride; /* the stride in bytes */ int data_owner; /* owner of data (for validation) */ - int data; /* pointer to struct gralloc_drm_bo_t */ + struct gralloc_drm_bo_t *data; /* pointer to struct gralloc_drm_bo_t */ }; static inline struct gralloc_drm_handle_t *gralloc_drm_handle(buffer_handle_t _handle) -- cgit v1.1