summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/utime.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/utime.c')
-rw-r--r--cpukit/libcsupport/src/utime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/utime.c b/cpukit/libcsupport/src/utime.c
index ba9a50a63d..f176615231 100644
--- a/cpukit/libcsupport/src/utime.c
+++ b/cpukit/libcsupport/src/utime.c
@@ -20,6 +20,7 @@
#include <errno.h>
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int utime(
const char *path,
@@ -34,7 +35,7 @@ int utime(
if ( !temp_loc.ops->utime_h ){
rtems_filesystem_freenode( &temp_loc );
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );