]> sigrok.org Git - libserialport.git/blobdiff - linux_termios.c
Minor Doxygen updates/fixes.
[libserialport.git] / linux_termios.c
index 743af6000503fe7c9754c61eb860aa5867728186..328c4d39b4024bc06fc218a52a69e7ac2cbd079c 100644 (file)
@@ -33,7 +33,7 @@
  * TCSETX/TCGETX ioctls used with struct termiox, others do not.
  */
 
-#ifdef __linux__
+#if defined(__linux__) && !defined(__ANDROID__)
 
 #include <linux/termios.h>
 #include "linux_termios.h"
@@ -99,8 +99,8 @@ int get_termiox_size(void)
 int get_termiox_flow(void *data)
 {
        struct termiox *termx = (struct termiox *) data;
-
        int flags = 0;
+
        if (termx->x_cflag & RTSXOFF)
                flags |= RTS_FLOW;
        if (termx->x_cflag & CTSXON)
@@ -131,4 +131,3 @@ void set_termiox_flow(void *data, int flags)
 #endif
 
 #endif
-