]> sigrok.org Git - libserialport.git/commitdiff
linux_termios.c: fix check for termios speed fields.
authorMartin Ling <redacted>
Fri, 3 Jan 2014 12:44:14 +0000 (13:44 +0100)
committerMartin Ling <redacted>
Fri, 3 Jan 2014 12:44:14 +0000 (13:44 +0100)
linux_termios.c

index d45f8015914c1217d0dba9c974608b169e8aeb63..9e25f2797b6c5431535fe9663590f72d0cf59d79 100644 (file)
@@ -63,7 +63,7 @@ int get_termios_size(void)
 #endif
 }
 
-#ifdef USE_TERMIOS_SPEED
+#if defined(HAVE_TERMIOS_SPEED) || defined(HAVE_TERMIOS2_SPEED)
 int get_termios_speed(void *data)
 {
 #ifdef HAVE_TERMIOS2