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

Ilia Mirkin imirkin at alum.mit.edu
Mon Mar 13 14:03:03 UTC 2017


Which repository do these patches apply to? Also the proper way of
including drm headers is

#include <drm.h>

etc. pkg-config --cflags libdrm should show you "-I/usr/include/libdrm".

On Mon, Mar 13, 2017 at 9:32 AM, Fabio Estevam <festevam at gmail.com> wrote:
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list