kms: include stdlib.h
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 23 Nov 2016 18:41:43 +0000 (19:41 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 23 Nov 2016 18:44:49 +0000 (19:44 +0100)
drm.h does not include all what it needs to compile, in particular
stdlib.h which defines size_t

sys/kms/gstkmsallocator.c

index 82af265..2451e30 100644 (file)
@@ -30,6 +30,7 @@
 #include <drm.h>
 #include <xf86drm.h>
 #include <xf86drmMode.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/mman.h>
 #include <unistd.h>