Non-standard baud rates for FreeBSD, NetBSD.
This appears to work the same as it does for OpenBSD.
This commit is contained in:
parent
af30ea095a
commit
94abe88bb1
|
@ -88,7 +88,7 @@ static int set_nonstandard_rate(int fd, struct termios *attr, int rate)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
static int set_nonstandard_rate(int fd, struct termios *attr, int rate)
|
static int set_nonstandard_rate(int fd, struct termios *attr, int rate)
|
||||||
{
|
{
|
||||||
cfsetispeed(attr, rate);
|
cfsetispeed(attr, rate);
|
||||||
|
|
Loading…
Reference in New Issue