diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/fchmod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libc/fchmod.c b/c/src/lib/libc/fchmod.c index 989b3ba991..70b58a0998 100644 --- a/c/src/lib/libc/fchmod.c +++ b/c/src/lib/libc/fchmod.c @@ -22,6 +22,7 @@ #include <rtems.h> #include <rtems/libio.h> #include <rtems/libio_.h> +#include <rtems/seterr.h> int fchmod( int fd, @@ -41,7 +42,7 @@ int fchmod( rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) - set_errno_and_return_minus_one( ENOTSUP ); + rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } |