From: Martin Ling Date: Sun, 19 Mar 2017 12:16:49 +0000 (+0000) Subject: Linux: fix for alpha where BOTHER is not defined. X-Git-Tag: libserialport-0.1.2~99 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6c8115820d2eb06ada96a48cdda7dc3467ae90d1;p=libserialport.git Linux: fix for alpha where BOTHER is not defined. Fixes bug #363. --- diff --git a/libserialport_internal.h b/libserialport_internal.h index 669152b..308b20b 100644 --- a/libserialport_internal.h +++ b/libserialport_internal.h @@ -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 diff --git a/linux_termios.c b/linux_termios.c index 5083fff..3630e57 100644 --- a/linux_termios.c +++ b/linux_termios.c @@ -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