From 420835bf2ade1f364bd81ec27361d74a039d07fa Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 8 Sep 2019 18:19:57 +0200 Subject: [PATCH] Header of xiotermios_speed() declared parameter unsigned int instead of speed_t --- CHANGES | 6 ++++++ xio-termios.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 3e0b634..1e5d16a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,10 @@ +Corrections: + Header of xiotermios_speed() declared parameter unsigned int instead of + speed_t, thus compiling failed on MacOS + Thanks to Joe Strout and others for reporting this bug. + Thanks to Andrew Childs and others for sending a patch. + ####################### V 1.7.3.3: Corrections: diff --git a/xio-termios.h b/xio-termios.h index a288a2f..9858aab 100644 --- a/xio-termios.h +++ b/xio-termios.h @@ -148,7 +148,7 @@ extern int xiotermiosflag_applyopt(int fd, struct opt *opt); extern int xiotermios_value(int fd, int word, tcflag_t mask, tcflag_t value); extern int xiotermios_char(int fd, int n, unsigned char c); #ifdef HAVE_TERMIOS_ISPEED -extern int xiotermios_speed(int fd, int n, unsigned int speed); +extern int xiotermios_speed(int fd, int n, speed_t speed); #endif extern int xiotermios_spec(int fd, int optcode); extern int xiotermios_flush(int fd);