*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Sat, 31 Jan 2004 21:23:15 +0000
changeset 798 f1b029d3b301
parent 797 d0f1e34290d6
child 799 85960507bd2e
*** empty log message ***
src/video/Xext/Xxf86dga/XF86DGA2.c
--- a/src/video/Xext/Xxf86dga/XF86DGA2.c	Sat Jan 31 08:57:03 2004 +0000
+++ b/src/video/Xext/Xxf86dga/XF86DGA2.c	Sat Jan 31 21:23:15 2004 +0000
@@ -23,7 +23,7 @@
 #include "extutil.h"
 #include <stdio.h>
 
-#if defined(linux)  /* Needed for framebuffer console support */
+#if defined(ENABLE_FBCON)  /* Needed for framebuffer console support */
 #include <sys/ioctl.h>
 #include <linux/fb.h>
 #endif
@@ -929,7 +929,7 @@
     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 <hercules@lokigames.com> */
         /* Try to fall back to /dev/fb on Linux - FIXME: verify the device */
         struct fb_fix_screeninfo finfo;