summaryrefslogtreecommitdiff
path: root/src/rototiller.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2018-02-22 20:42:42 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-02-27 23:02:26 -0800
commitb18fc1ca50570b0674095ee87711e19ee95ae8df (patch)
treec563a98d84799e03289fb7f95ac095a177acd10c /src/rototiller.c
parentf6991fdd218ab15ed4a6d9501181f55053499a05 (diff)
build: make drm optional
Diffstat (limited to 'src/rototiller.c')
-rw-r--r--src/rototiller.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rototiller.c b/src/rototiller.c
index 0fbc794..e4c818b 100644
--- a/src/rototiller.c
+++ b/src/rototiller.c
@@ -150,7 +150,9 @@ static int setup_video(settings_t *settings, setting_desc_t **next_setting)
if (!video) {
setting_desc_t *desc;
const char *values[] = {
+#ifdef HAVE_DRM
"drm",
+#endif
"sdl",
NULL,
};
@@ -170,11 +172,14 @@ static int setup_video(settings_t *settings, setting_desc_t **next_setting)
}
/* XXX: this is kind of hacky for now */
+#ifdef HAVE_DRM
if (!strcmp(video, "drm")) {
fb_ops = &drm_fb_ops;
return drm_fb_ops.setup(settings, next_setting);
- } else if (!strcmp(video, "sdl")) {
+ } else
+#endif
+ if (!strcmp(video, "sdl")) {
fb_ops = &sdl_fb_ops;
return sdl_fb_ops.setup(settings, next_setting);
© All Rights Reserved