diff options
Diffstat (limited to 'cpukit/libcsupport/src/cfsetospeed.c')
-rw-r--r-- | cpukit/libcsupport/src/cfsetospeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/cfsetospeed.c b/cpukit/libcsupport/src/cfsetospeed.c index 0d8a553353..20e1b11403 100644 --- a/cpukit/libcsupport/src/cfsetospeed.c +++ b/cpukit/libcsupport/src/cfsetospeed.c @@ -24,6 +24,7 @@ #include <termios.h> #include <rtems/libio_.h> +#include <rtems/seterr.h> int cfsetospeed( struct termios *tp, @@ -31,7 +32,7 @@ int cfsetospeed( ) { if ( speed & ~CBAUD ) - set_errno_and_return_minus_one( EINVAL ); + rtems_set_errno_and_return_minus_one( EINVAL ); tp->c_cflag = (tp->c_cflag & ~CBAUD) | speed; return 0; |