Skip to content

Commit

Permalink
ATM, there is no particular reason to keep O_NDELAY in open(2) flags …
Browse files Browse the repository at this point in the history
…(not defined by POSIX, BTW), but a particular reason to suppress it: it breaks build on FreeBSD.
  • Loading branch information
smortex committed Jan 28, 2010
1 parent 1967280 commit 10183ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/buses/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 10183ff

Please sign in to comment.