From 1d5d2a166f582e06aa2848fe9ca9c33f85acd45d Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 22 Nov 2013 16:07:32 +0100 Subject: [PATCH] Temporarily disable USE_TERMIOX code (breaks the lib). On some systems the use of the code enabled by USE_TERMIOX leads to a non-working sp_open() which breaks all functionality provided by the lib. Thus, temporarily disable that code until the details are investigated. This has been tested with a serial port DMM and the OLS logic analyzer on an x86 64bit Linux system with kernel version 3.11. The code compiles fine but doesn't work at runtime. The configure output included: checking for struct termios2... yes checking for struct termiox... yes The root cause for the problem is that the ioctl(fd, TCGETX, data) call in get_flow() returns -1 ("Invalid argument"), which in turn lets sp_open() return SP_ERR_FAIL. --- serialport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serialport.c b/serialport.c index 5e77607..9697b7c 100644 --- a/serialport.c +++ b/serialport.c @@ -46,7 +46,8 @@ #include "linux/serial.h" #include "linux_termios.h" #if defined(TCGETX) && defined(TCSETX) && defined(HAVE_TERMIOX) -#define USE_TERMIOX +// FIXME: Temporarily disabled, breaks all lib functionality on some systems. +// #define USE_TERMIOX #endif #endif