]> sigrok.org Git - libserialport.git/blobdiff - linux_termios.c
Fix the build on non-Linux platforms.
[libserialport.git] / linux_termios.c
index b50b2c95d877aa78043db958bb98ceff86b1da4e..743af6000503fe7c9754c61eb860aa5867728186 100644 (file)
@@ -33,6 +33,8 @@
  * TCSETX/TCGETX ioctls used with struct termiox, others do not.
  */
 
+#ifdef __linux__
+
 #include <linux/termios.h>
 #include "linux_termios.h"
 
@@ -127,3 +129,6 @@ void set_termiox_flow(void *data, int flags)
                termx->x_cflag |= DSRXON;
 }
 #endif
+
+#endif
+