X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=linux_termios.c;h=328c4d39b4024bc06fc218a52a69e7ac2cbd079c;hb=2dcf83088840579c156d0b328f19675ed4c18f98;hp=743af6000503fe7c9754c61eb860aa5867728186;hpb=da21834e42bc58065de0871f49fffefa605d4c5b;p=libserialport.git diff --git a/linux_termios.c b/linux_termios.c index 743af60..328c4d3 100644 --- a/linux_termios.c +++ b/linux_termios.c @@ -33,7 +33,7 @@ * TCSETX/TCGETX ioctls used with struct termiox, others do not. */ -#ifdef __linux__ +#if defined(__linux__) && !defined(__ANDROID__) #include #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 -