OSDN Git Service

Fix sisfb header location for 2.6 kernels
authorMichel Daenzer <michel@daenzer.net>
Wed, 18 Feb 2004 20:56:58 +0000 (20:56 +0000)
committerMichel Daenzer <michel@daenzer.net>
Wed, 18 Feb 2004 20:56:58 +0000 (20:56 +0000)
Submitted by: Andrew Morton

shared-core/sis_mm.c
shared/sis_mm.c

index b6ff069..092096c 100644 (file)
 #include "sis_drv.h"
 #include "sis_ds.h"
 #if defined(__linux__) && defined(CONFIG_FB_SIS)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#include <video/sisfb.h>
+#else
 #include <linux/sisfb.h>
 #endif
+#endif
 
 #define MAX_CONTEXT 100
 #define VIDEO_TYPE 0 
index b6ff069..092096c 100644 (file)
 #include "sis_drv.h"
 #include "sis_ds.h"
 #if defined(__linux__) && defined(CONFIG_FB_SIS)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#include <video/sisfb.h>
+#else
 #include <linux/sisfb.h>
 #endif
+#endif
 
 #define MAX_CONTEXT 100
 #define VIDEO_TYPE 0