From: Uwe Hermann Date: Fri, 22 Nov 2013 10:56:40 +0000 (+0100) Subject: Fix the build on non-Linux platforms. X-Git-Tag: libserialport-0.1.0~78 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=da21834e42bc58065de0871f49fffefa605d4c5b;p=libserialport.git Fix the build on non-Linux platforms. --- diff --git a/linux_termios.c b/linux_termios.c index b50b2c9..743af60 100644 --- a/linux_termios.c +++ b/linux_termios.c @@ -33,6 +33,8 @@ * TCSETX/TCGETX ioctls used with struct termiox, others do not. */ +#ifdef __linux__ + #include #include "linux_termios.h" @@ -127,3 +129,6 @@ void set_termiox_flow(void *data, int flags) termx->x_cflag |= DSRXON; } #endif + +#endif +