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:
parent
d2ac0e3bbe
commit
da21834e42
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user