diff options
Diffstat (limited to 'c/src/exec/libcsupport/src/chown.c')
-rw-r--r-- | c/src/exec/libcsupport/src/chown.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/chown.c b/c/src/exec/libcsupport/src/chown.c index 78a22ec17b..c860ace76e 100644 --- a/c/src/exec/libcsupport/src/chown.c +++ b/c/src/exec/libcsupport/src/chown.c @@ -22,6 +22,7 @@ #include <rtems/libio.h> #include <rtems/libio_.h> +#include <rtems/seterr.h> int chown( const char *path, @@ -37,7 +38,7 @@ int chown( if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); - set_errno_and_return_minus_one( ENOTSUP ); + rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); |