diff -Nru build_mod.orig/2.6.x/Makefile build_mod/2.6.x/Makefile
--- build_mod.orig/2.6.x/Makefile	2004-08-05 23:06:07.709571464 +0200
+++ build_mod/2.6.x/Makefile	2004-08-05 23:06:35.673320328 +0200
@@ -11,7 +11,7 @@
 endif
 
 EXTRA_CFLAGS    += \
-                -Idrivers/char/drm/ \
+                -I$(DRMINCLUDES) \
                 -D__AGP__ \
                 -DFGL \
                 -DFGL_LINUX \
diff -Nru build_mod.orig/make.sh build_mod/make.sh
--- build_mod.orig/make.sh	2004-08-05 23:06:07.708571616 +0200
+++ build_mod/make.sh	2004-08-05 23:06:37.253080168 +0200
@@ -180,6 +180,11 @@
 drmincludes=${linuxincludes}/../drivers/char/drm
 #drmincludes=/usr/local/src/dripkg/drm
 
+# Fedora Core 2 work around
+if [ ! -e "/usr/src/linux" ] && [ -d "/usr/src/linux-${uname_r}" ]; then
+  drmincludes=/usr/src/linux-${uname_r}/drivers/char/drm
+fi
+
 # since kernel 2.4.8 the X4.1.0 drm kernel module headers are part
 # of the kernel build environment - check dir and expected files.
 
@@ -993,7 +998,7 @@
 if [ $kernel_is_26x -gt 0 ]; then
     echo "doing Makefile based build for kernel 2.6.x and higher"   | tee -a $logfile
     cd 2.6.x
-    make PAGE_ATTR_FIX=$PAGE_ATTR_FIX 2>&1                          | tee -a $logfile
+    make PAGE_ATTR_FIX=$PAGE_ATTR_FIX DRMINCLUDES=$drmincludes 2>&1 | tee -a $logfile
     res=$?
     cd ..
     if [ $res -eq 0 ]; then
