From 10183ffd2217c7c8e291490cc03a03972c783bda Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Thu, 28 Jan 2010 15:46:55 +0000 Subject: [PATCH] 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. --- src/lib/buses/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/buses/uart.c b/src/lib/buses/uart.c index 55252629..3eeba39e 100644 --- a/src/lib/buses/uart.c +++ b/src/lib/buses/uart.c @@ -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);