Le Wednesday 2 August 2006 08:17, marvin a écrit : > hi, > > the commit > http://marc.theaimsgroup.com/?l=dri-patches&m=115262866714385&w=2 uses a > FALSE constant which is defined in linux/agp_backend.h, but gets only > included in AGP systems. > I think it should be moved out of the linux kernel header to drmP.h. I > could not find any users of it in the kernel source itself.
sorry, I was to fast - it is used in the agp drivers (who could guess that?). Anyway, below is a dirty patch which makes drm compile on my non agp powermac. Maybe someday linux will get its own bool ... --- drm/linux-core/drmP.h.orig 2006-07-25 23:10:38.969534704 +0200 +++ drm/linux-core/drmP.h 2006-08-07 08:34:21.948027189 +0200 @@ -70,6 +70,9 @@ #if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) #include <linux/types.h> #include <linux/agp_backend.h> +#else +#define FALSE 0 +#define TRUE 1 #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41) #define HAS_WORKQUEUE 0 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
