diff --git a/src/video/Xext/Xxf86dga/XF86DGA2.c b/src/video/Xext/Xxf86dga/XF86DGA2.c index 089c0e0c2..2538013c3 100644 --- a/src/video/Xext/Xxf86dga/XF86DGA2.c +++ b/src/video/Xext/Xxf86dga/XF86DGA2.c @@ -23,7 +23,7 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc #include "extutil.h" #include -#if defined(linux) /* Needed for framebuffer console support */ +#if defined(ENABLE_FBCON) /* Needed for framebuffer console support */ #include #include #endif @@ -929,7 +929,7 @@ DGAMapPhysical( if (!name) name = DEV_MEM; if ((pMap->fd = open(name, O_RDWR)) < 0) -#if defined(linux) +#if defined(ENABLE_FBCON) { /* /dev/fb0 fallback added by Sam Lantinga */ /* Try to fall back to /dev/fb on Linux - FIXME: verify the device */ struct fb_fix_screeninfo finfo;