Fix missing stdlib includes in xf86drmMode.h
authorSimon Ser <contact@emersion.fr>
Sat, 26 Oct 2019 17:36:37 +0000 (19:36 +0200)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 12 Nov 2019 00:16:58 +0000 (00:16 +0000)
Including xf86drmMode.h results in undefined references to uint32_t
and ssize_t. Include the stdlib headers that define them to allow the
file to be included without xf86drm.h.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
xf86drmMode.h

index a32902f..159a399 100644 (file)
@@ -41,6 +41,8 @@ extern "C" {
 #endif
 
 #include <drm.h>
+#include <stddef.h>
+#include <stdint.h>
 
 /*
  * This is the interface for modesetting for drm.