diff options
-rw-r--r-- | render/allocator/gbm.c | 1 | ||||
-rw-r--r-- | render/allocator/meson.build | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/render/allocator/gbm.c b/render/allocator/gbm.c index f77fedd8..a41065b5 100644 --- a/render/allocator/gbm.c +++ b/render/allocator/gbm.c @@ -10,6 +10,7 @@ #include <wlr/util/log.h> #include <xf86drm.h> +#include "config.h" #include "render/allocator/gbm.h" #include "render/drm_format_set.h" diff --git a/render/allocator/meson.build b/render/allocator/meson.build index 97c5a1c3..1fdfe557 100644 --- a/render/allocator/meson.build +++ b/render/allocator/meson.build @@ -21,5 +21,5 @@ if gbm.found() features += { 'gbm-allocator': true } has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm]) - add_project_arguments('-DHAS_GBM_BO_GET_FD_FOR_PLANE=@0@'.format(has.to_int()), language: 'c') + internal_config.set10('HAS_GBM_BO_GET_FD_FOR_PLANE', has) endif |