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
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
+#include <linux/wait.h>
+#include <linux/mm.h>
#include <linux/comedi.h>
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