]> sigrok.org Git - libserialport.git/commitdiff
Fix the build on non-Linux platforms.
authorUwe Hermann <redacted>
Fri, 22 Nov 2013 10:56:40 +0000 (11:56 +0100)
committerUwe Hermann <redacted>
Fri, 22 Nov 2013 10:56:40 +0000 (11:56 +0100)
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
+