* 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"
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)
#endif
#endif
-