On Wed, 2003-12-17 at 13:53, Stéphane Purnelle wrote: > This is a compil error in alsa 1.0.0rc2 on a Fedora core 1 > > gcc -D__KERNEL__ -DMODULE=1 > -I/home/backup/alsa/alsa-driver-1.0.0rc2/include > -I > /lib/modules/2.4.22-1.2115.nptl/build/include -O2 > -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall > -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 > -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD > -DKBUILD_BASENAME=serialmidi -c -o serialmidi.o serialmidi.c > serialmidi.c: Dans la fonction « open_tty »: > serialmidi.c:164: error: invalid operands to binary > > make[1]: *** [serialmidi.o] Erreur 1 > make[1]: Quitte le répertoire > `/home/backup/alsa/alsa-driver-1.0.0rc2/drivers' > make: *** [compile] Erreur 1 > > anyone help me ?
I think this is what you need: --- alsa-driver-0.9.8/drivers/serialmidi.c~ 2003-09-24 09:41:33.000000000 -0700 +++ alsa-driver-0.9.8/drivers/serialmidi.c 2003-11-12 19:07:16.000000000 -0800 @@ -161,7 +161,7 @@ retval = -EIO; goto __end; } - if (tty->count > 1) { + if (atomic_read(&tty->count) > 1) { snd_printk(KERN_ERR "tty %s is already used", serial->sdev); retval = -EBUSY; goto __end; -- Fernando ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user