From d4c14466921faf3adb80f75aa345307aa03e2b50 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 3 Dec 2001 20:40:18 +0000 Subject: [PATCH] fixes for compile on rtlinux-3.1 with linux 2.2.19 --- Makefile.modbuild | 2 +- include/linux/comedidev.h | 2 ++ scripts/dep.rtlinux | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.modbuild b/Makefile.modbuild index 5b257d4a..0635a1f4 100644 --- a/Makefile.modbuild +++ b/Makefile.modbuild @@ -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 diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 411a7c10..8be89458 100644 --- a/include/linux/comedidev.h +++ b/include/linux/comedidev.h @@ -30,6 +30,8 @@ #include #include #include +#include +#include #include diff --git a/scripts/dep.rtlinux b/scripts/dep.rtlinux index 2f11bf98..27d349f6 100755 --- a/scripts/dep.rtlinux +++ b/scripts/dep.rtlinux @@ -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 -- 2.26.2