[Lcdproc] Compile error
Matteo Pillon
matteo.pillon@gmail.com
Thu Sep 7 14:22:03 2006
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Hi, Peter.
On Sat, Sep 02, 2006 at 09:05:22PM +0200, Peter Marschall wrote:
>
> Done in CVS.
>
Thanks for fixing this issue.
I've found that the driver still doesn't work on FreeBSD.
It seems that cfmakeraw on FreeBSD doesn't set CLOCAL.
Attached there's a patch which fixes this.
Bye.
--
* Pillon Matteo
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: attachment; filename="freebsd_seria.patch"
diff -u -r1.2 hd44780-serial.c
--- server/drivers/hd44780-serial.c 2 Sep 2006 18:54:54 -0000 1.2
+++ server/drivers/hd44780-serial.c 7 Sep 2006 14:00:35 -0000
@@ -196,6 +196,7 @@
#ifdef HAVE_CFMAKERAW
/* The easy way */
cfmakeraw( &portset );
+ portset.c_cflag |= CLOCAL;
#else
/* The hard way */
portset.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP
@@ -205,6 +206,7 @@
portset.c_cflag &= ~( CSIZE | PARENB | CRTSCTS );
portset.c_cflag |= CS8 | CREAD | CLOCAL ;
#endif
+
/* Set port speed */
cfsetospeed(&portset, bitrate);
cfsetispeed(&portset, B0);
--AqsLC8rIMeq19msA--