]> sigrok.org Git - libserialport.git/blobdiff - linux_termios.c
change type of result variables to ssize_t
[libserialport.git] / linux_termios.c
index e23d187b0dac63210c203edfa3b177ab6d44980a..3630e5758ae355ff823237a5ca39acda2cee8257 100644 (file)
@@ -33,6 +33,7 @@
  * TCSETX/TCGETX ioctls used with struct termiox, others do not.
  */
 
+#include <config.h>
 #include <stdlib.h>
 #include <linux/termios.h>
 #include "linux_termios.h"
@@ -64,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