Use the modern way to set the baudrate using an integer and not a macro. ``` struct termios2 tio; ioctl(fd, TCGETS2, &tio); tio.c_cflag &= ~CBAUD; tio.c_cflag |= BOTHER; tio.c_ispeed = 12345; tio.c_ospeed = 12345; ioctl(fd, TCSETS2, &tio); ``` For more information see: https://stackoverflow.com/a/19992472/1113139