1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Linux: fix for alpha where BOTHER is not defined.

Fixes bug #363.
This commit is contained in:
Martin Ling 2017-03-19 12:16:49 +00:00
parent d8de88de32
commit 6c8115820d
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@
#endif #endif
/* Non-standard baudrates are not available everywhere. */ /* 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 #define USE_TERMIOS_SPEED
#endif #endif

View File

@ -65,7 +65,7 @@ SP_PRIV size_t get_termios_size(void)
#endif #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) SP_PRIV int get_termios_speed(void *data)
{ {
#ifdef HAVE_STRUCT_TERMIOS2 #ifdef HAVE_STRUCT_TERMIOS2