fixes for compile on rtlinux-3.1 with linux 2.2.19
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 3 Dec 2001 20:40:18 +0000 (20:40 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 3 Dec 2001 20:40:18 +0000 (20:40 +0000)
Makefile.modbuild
include/linux/comedidev.h
scripts/dep.rtlinux

index 5b257d4a3c6e5bfc42a83e2cae599aaa97e86a6c..0635a1f4e8f2f93b2c3a5c5a29fe475f9a464743 100644 (file)
@@ -41,7 +41,7 @@ export MODLIB
 
 export FLAT_MODULES
 
-CFLAGS := -I $(TOPDIR)/include $(CFLAGS)
+CFLAGS := -I $(TOPDIR)/include -D__KERNEL__ -I $(LINUXDIR)/include $(CFLAGS) 
 
 CFLAGS += -nostdinc -I $(shell $(CC) -print-search-dirs|grep ^install:|sed 's/^install: //')include
 
index 411a7c1071dec3e0a9b4cb92bdcb13a9ef893957..8be8945843f97e84d25a4eaf3d7416b0e777da00 100644 (file)
@@ -30,6 +30,8 @@
 #include <linux/slab.h>
 #include <linux/errno.h>
 #include <linux/spinlock.h>
+#include <linux/wait.h>
+#include <linux/mm.h>
 
 #include <linux/comedi.h>
 
index 2f11bf98b1b379f9598896facc8ec23710edbff0..27d349f6338286ec26626baa6caac49a3dc6b500 100755 (executable)
@@ -16,6 +16,6 @@ if [ "$CONFIG_RTL" != "" -o "$CONFIG_RTL_V1" = "y" ]; then
        fi
        : ${RTLDIR:=$default}
        echo RTLDIR=$RTLDIR >>.buildvars
-       echo CFLAGS += -I $RTLDIR/include -I $RTLDIR/include/compat -D__RT__ >>.buildvars
+       echo CFLAGS += -I $RTLDIR/include -I $RTLDIR/include/compat -I $RTLDIR/include/posix -D__RT__ >>.buildvars
        export RTLDIR
 fi