Include header file to fix the following build
error:
drm-atomic.c: In function ‘get_plane_id’:
drm-atomic.c:290:44: error: ‘DRM_MODE_OBJECT_PLANE’ undeclared (first
use in this function)
drmModeObjectGetProperties(drm.fd, id, DRM_MODE_OBJECT_PLANE);
This error only happens when using a tool
Hi Gary,
On Mon, Mar 13, 2017 at 6:42 AM, Gary Bisson
wrote:
> Include header file to fix the following build
> error:
> drm-atomic.c: In function ‘get_plane_id’:
> drm-atomic.c:290:44: error: ‘DRM_MODE_OBJECT_PLANE’ undeclared (first
> use in this function)
> drmModeObjectGetProperties(drm
On 4 March 2017 at 15:01, Fabio Estevam wrote:
> Include header file to fix the following build warning:
>
> CC kmscube-drm.o
> drm-atomic.c: In function 'init_drm_atomic':
> drm-atomic.c:346:14: warning: implicit declaration of function 'calloc'
> [-Wimplicit-function-declaration]
> d
Include header file to fix the following build warning:
CC kmscube-drm.o
drm-atomic.c: In function 'init_drm_atomic':
drm-atomic.c:346:14: warning: implicit declaration of function 'calloc'
[-Wimplicit-function-declaration]
drm.plane = calloc(1, sizeof(*drm.plane));
^
drm