summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/fdatasync.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/fdatasync.c')
-rw-r--r--cpukit/libcsupport/src/fdatasync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/fdatasync.c b/cpukit/libcsupport/src/fdatasync.c
index 55f26401b2..ca27f996aa 100644
--- a/cpukit/libcsupport/src/fdatasync.c
+++ b/cpukit/libcsupport/src/fdatasync.c
@@ -18,6 +18,7 @@
#include <unistd.h>
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int fdatasync(
int fd
@@ -35,7 +36,7 @@ int fdatasync(
*/
if ( !iop->handlers->fdatasync_h )
- set_errno_and_return_minus_one( ENOTSUP );
+ rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fdatasync_h)( iop );
}