cfmakeraw() on FreeBSD doesn't set CLOCAL (Matteo Pillon)
This commit is contained in:
@@ -198,6 +198,7 @@ hd_init_serial (Driver *drvthis)
|
|||||||
#ifdef HAVE_CFMAKERAW
|
#ifdef HAVE_CFMAKERAW
|
||||||
/* The easy way */
|
/* The easy way */
|
||||||
cfmakeraw( &portset );
|
cfmakeraw( &portset );
|
||||||
|
portset.c_cflag |= CLOCAL;
|
||||||
#else
|
#else
|
||||||
/* The hard way */
|
/* The hard way */
|
||||||
portset.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP
|
portset.c_iflag &= ~( IGNBRK | BRKINT | PARMRK | ISTRIP
|
||||||
|
|||||||
Reference in New Issue
Block a user