Replaced __linux macro with __linux__

This commit is contained in:
Vojtech Bubnik
2021-01-11 13:31:30 +01:00
parent 42779c6fac
commit 6bdbe0ffb4
6 changed files with 9 additions and 9 deletions

View File

@@ -313,7 +313,7 @@ void Serial::set_baud_rate(unsigned baud_rate)
speed_t newSpeed = baud_rate;
handle_errno(::ioctl(handle, IOSSIOSPEED, &newSpeed));
handle_errno(::tcsetattr(handle, TCSANOW, &ios));
#elif __linux
#elif __linux__
/* The following definitions are kindly borrowed from:
/usr/include/asm-generic/termbits.h