[Mesa-dev] [PATCH 1/2] drm.h: Include libdrm headers

Fabio Estevam festevam at gmail.com
Mon Mar 13 13:32:53 UTC 2017


Include <libdrm/drm.h> and <libdrm/drm_mode.h> headers to avoid
the following build errors on sparc64:

http://autobuild.buildroot.net/results/d7e/d7e82c67e0b04b0aea990bfb19dd6e4fd914bebe/build-end.log

This also fixes the build error reported by Gary Bisson on ARM
when using Linaro 2017.02 ARM gnueabihf toolchain and
also on x86 with Ubuntu 16.04.

Reported-by: Gary Bisson <gary.bisson at boundarydevices.com>
Signed-off-by: Fabio Estevam <festevam at gmail.com>
---
 drm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drm.h b/drm.h
index c41683b..6ac7a82 100644
--- a/drm.h
+++ b/drm.h
@@ -24,6 +24,8 @@
 #ifndef _DRM_H
 #define _DRM_H
 
+#include <libdrm/drm.h>
+#include <libdrm/drm_mode.h>
 #include <xf86drm.h>
 #include <xf86drmMode.h>
 
-- 
2.7.4



More information about the mesa-dev mailing list