mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
27c8209ed4
commit
bdb9b50dc4
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue