]> sigrok.org Git - libserialport.git/commitdiff
Linux: fix for alpha where BOTHER is not defined.
authorMartin Ling <redacted>
Sun, 19 Mar 2017 12:16:49 +0000 (12:16 +0000)
committerMartin Ling <redacted>
Sun, 19 Mar 2017 12:16:49 +0000 (12:16 +0000)
Fixes bug #363.

libserialport_internal.h
linux_termios.c

index 669152b675339927e5b0dda0e993230c637fbe7c..308b20b34a5e069aad428f9b7719c3edb36c517b 100644 (file)
@@ -85,7 +85,7 @@
 #endif
 
 /* Non-standard baudrates are not available everywhere. */
-#if (defined(HAVE_TERMIOS_SPEED) || defined(HAVE_TERMIOS2_SPEED)) && defined(HAVE_DECL_BOTHER)
+#if (defined(HAVE_TERMIOS_SPEED) || defined(HAVE_TERMIOS2_SPEED)) && HAVE_DECL_BOTHER
 #define USE_TERMIOS_SPEED
 #endif
 
index 5083fff5ba6511b39499ac356f0596c5bfe1123e..3630e5758ae355ff823237a5ca39acda2cee8257 100644 (file)
@@ -65,7 +65,7 @@ SP_PRIV size_t get_termios_size(void)
 #endif
 }
 
-#if (defined(HAVE_TERMIOS_SPEED) || defined(HAVE_TERMIOS2_SPEED)) && defined(HAVE_DECL_BOTHER)
+#if (defined(HAVE_TERMIOS_SPEED) || defined(HAVE_TERMIOS2_SPEED)) && HAVE_DECL_BOTHER
 SP_PRIV int get_termios_speed(void *data)
 {
 #ifdef HAVE_STRUCT_TERMIOS2