[chronojump] Fix compilation as CBAUD is Linux POSIX extension
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fix compilation as CBAUD is Linux POSIX extension
- Date: Fri, 16 Nov 2012 16:46:31 +0000 (UTC)
commit 67cca8a60a99d21f9c00448b5d91287ea9e4a17a
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 28 21:48:54 2012 +0200
Fix compilation as CBAUD is Linux POSIX extension
chronopic-tests/chronopic.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/chronopic-tests/chronopic.c b/chronopic-tests/chronopic.c
index 3055216..73113b7 100644
--- a/chronopic-tests/chronopic.c
+++ b/chronopic-tests/chronopic.c
@@ -58,7 +58,11 @@ int chronopic_open(char *disp)
fd = open(disp,O_RDWR | O_NOCTTY); /* Abrir puerto serie */
/* Modificar los atributos */
- newtermios.c_cflag= CBAUD | CS8 | CLOCAL | CREAD;
+ newtermios.c_cflag= CS8 | CLOCAL | CREAD;
+ /* CBAUD is a Linux extension to the POSIX Terminal I/O definitions. */
+#ifdef CBAUD
+ newtermios.c_cflag |= CBAUD
+#endif
newtermios.c_iflag=IGNPAR;
newtermios.c_oflag=0;
newtermios.c_lflag=0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]