Non-standard baud rates for FreeBSD, NetBSD.

This appears to work the same as it does for OpenBSD.
This commit is contained in:
Daniel Beer 2012-03-03 09:57:48 +13:00
parent af30ea095a
commit 94abe88bb1
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static int set_nonstandard_rate(int fd, struct termios *attr, int rate)
return 0;
}
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
static int set_nonstandard_rate(int fd, struct termios *attr, int rate)
{
cfsetispeed(attr, rate);