Simple patch to get Comedi to compile with the experimential version of RTAI.
authorDavid Schleef <ds@schleef.org>
Wed, 2 Jul 2003 22:58:01 +0000 (22:58 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 2 Jul 2003 22:58:01 +0000 (22:58 +0000)
scripts/dep.rtai

index 7e13864e7848c5642fe8f02e856ddf0b9629804d..46ff84d7782b902259507d1a9cf586ae77b510e4 100755 (executable)
@@ -13,6 +13,12 @@ if [ "$CONFIG_RTHAL" != "" ];then
        if [ -d ${RTAIDIR}/include ];then
                echo RTAIDIR=$RTAIDIR >>.buildvars
                echo CFLAGS += -I $RTAIDIR/include >>.buildvars
+       else
+           if [ -d ${RTAIDIR}/rtai-core/include ];then
+               echo RTAIDIR=$RTAIDIR >>.buildvars
+               echo CFLAGS += -I $RTAIDIR >>.buildvars
+               echo CFLAGS += -I $RTAIDIR/rtai-core/include >>.buildvars
+           fi
        fi
        export RTAIDIR
 fi