summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/cfsetispeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/cfsetispeed.c')
-rw-r--r--c/src/lib/libc/cfsetispeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libc/cfsetispeed.c b/c/src/lib/libc/cfsetispeed.c
index c26a7075e1..0298340848 100644
--- a/c/src/lib/libc/cfsetispeed.c
+++ b/c/src/lib/libc/cfsetispeed.c
@@ -24,6 +24,7 @@
#include <termios.h>
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int cfsetispeed(
struct termios *tp,
@@ -31,7 +32,7 @@ int cfsetispeed(
)
{
if ( speed & ~CBAUD )
- set_errno_and_return_minus_one( EINVAL );
+ rtems_set_errno_and_return_minus_one( EINVAL );
tp->c_cflag = (tp->c_cflag & ~CIBAUD) | (speed * (CIBAUD / CBAUD));
return 0;