macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given

I’m trying to compile the dgnc-1.3 series driver against RedHat’s 2.6.33.9-rt31.70.el5rt kernel, and am getting the following error message:

/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:72:41: error: macro “DEFINE_SEMAPHORE” requires 2 arguments, but only 1 given
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:72: warning: type defaults to âintâ in declaration of âDEFINE_SEMAPHOREâ
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c: In function âdgnc_tty_writeâ:
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:2167: error: âdgnc_TmpWriteSemâ undeclared (first use in this function)
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:2167: error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.c:2167: error: for each function it appears in.)
make[3]: *** [/usr/src/redhat/BUILD/dgnc-1.3/driver/build/dgnc_tty.o] Error 1
make[2]: *** [module/usr/src/redhat/BUILD/dgnc-1.3/driver/build] Error 2
make[2]: Leaving directory /usr/src/kernels/2.6.33.9-rt31.70.el5rt-x86_64' make[1]: *** [build] Error 2 make[1]: Leaving directory /usr/src/redhat/BUILD/dgnc-1.3/driver/2.6.27’
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.33130 (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.33130 (%build)

I’ve tried building with:

dgnc-1.3-24.src.rpm
dgnc-1.3-26.src.rpm
dgnc-1.3-28.src.rpm

Using the following command:

rpmbuild --rebuild --define DISTRO=FEDORA dgnc-1.3-.src.rpm

and without the DISTRO varible:

rpmbuild --rebuild dgnc-1.3-.src.rpm

Without luck. Can anyone assist?

Thanks!

George