Guard double include of libdrm.h by defining LIBDRM_H

Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Fixes: 4be68b119e ("loader: Don't load nouveau GL on nvidia kmd")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36495>
This commit is contained in:
Yurii Kolesnykov 2025-07-31 15:57:52 +01:00 committed by Marge Bot
parent 27c8209ed4
commit bdb9b50dc4

View file

@ -27,6 +27,9 @@
* the proliferation of #ifdef'ery to support environments without libdrm.
*/
#ifndef LIBDRM_H
#define LIBDRM_H
#ifdef HAVE_LIBDRM
#include <xf86drm.h>
#else
@ -147,3 +150,5 @@ static inline void
drmFreeVersion(struct _drmVersion *v) {}
#endif
#endif