From 4d86fed7004f547f3b5027a10f1bd4d28a9c968b Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Sat, 4 Mar 2017 12:01:49 -0300 Subject: drm-atomic: Include header file 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-atomic.c:346:14: warning: incompatible implicit declaration of built-in function 'calloc' drm-atomic.c:346:14: note: include '' or provide a declaration of 'calloc' Signed-off-by: Fabio Estevam Reviewed-by: Emil Velikov --- drm-atomic.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drm-atomic.c') diff --git a/drm-atomic.c b/drm-atomic.c index b4755e1..0b38c32 100644 --- a/drm-atomic.c +++ b/drm-atomic.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include -- cgit v1.2.1