diff options
author | Fabio Estevam <festevam@gmail.com> | 2017-03-04 12:01:49 -0300 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2017-03-10 15:24:44 +0000 |
commit | 4d86fed7004f547f3b5027a10f1bd4d28a9c968b (patch) | |
tree | b729d9a23c6e701c6663a915acf3e3b7aa2e3339 | |
parent | 87e3ff5683ee54228b3e6e75f7d4de83901fadb0 (diff) |
drm-atomic: Include <stdlib.h> header file
Include <stdlib.h> 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 '<stdlib.h>' or provide a declaration of 'calloc'
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | drm-atomic.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <assert.h> #include <errno.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <unistd.h> |