1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix the build on non-Linux platforms.

This commit is contained in:
Uwe Hermann 2013-11-22 11:56:40 +01:00
parent d2ac0e3bbe
commit da21834e42

View File

@ -33,6 +33,8 @@
* TCSETX/TCGETX ioctls used with struct termiox, others do not. * TCSETX/TCGETX ioctls used with struct termiox, others do not.
*/ */
#ifdef __linux__
#include <linux/termios.h> #include <linux/termios.h>
#include "linux_termios.h" #include "linux_termios.h"
@ -127,3 +129,6 @@ void set_termiox_flow(void *data, int flags)
termx->x_cflag |= DSRXON; termx->x_cflag |= DSRXON;
} }
#endif #endif
#endif