Commit 67cca8a6 authored by Andoni Morales's avatar Andoni Morales

Fix compilation as CBAUD is Linux POSIX extension

parent 445a1bff
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment