summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/telldir.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/telldir.c')
-rw-r--r--c/src/lib/libc/telldir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libc/telldir.c b/c/src/lib/libc/telldir.c
index 385b2f74f4..81c9606ebf 100644
--- a/c/src/lib/libc/telldir.c
+++ b/c/src/lib/libc/telldir.c
@@ -22,7 +22,7 @@
#include <errno.h>
#include <rtems/libio_.h>
-
+#include <rtems/seterr.h>
long telldir(
DIR *dirp
@@ -31,7 +31,7 @@ long telldir(
rtems_libio_t *iop;
if ( !dirp )
- set_errno_and_return_minus_one( EBADF );
+ rtems_set_errno_and_return_minus_one( EBADF );
/*
* Get the file control block structure associated with the