ATM, there is no particular reason to keep O_NDELAY in open(2) flags (not defined by POSIX, BTW), but a particular reason to suppress it: it breaks build on FreeBSD.
This commit is contained in:
parent
19672806d2
commit
10183ffd22
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ serial_port uart_open(const char* pcPortName)
|
|||
|
||||
if (sp == 0) return INVALID_SERIAL_PORT;
|
||||
|
||||
sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK);
|
||||
sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NONBLOCK);
|
||||
if(sp->fd == -1)
|
||||
{
|
||||
uart_close(sp);
|
||||
|
|
Loading…
Add table
Reference in a new issue