summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/fpathconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/fpathconf.c')
-rw-r--r--c/src/lib/libc/fpathconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libc/fpathconf.c b/c/src/lib/libc/fpathconf.c
index 063baff38a..ac65db000b 100644
--- a/c/src/lib/libc/fpathconf.c
+++ b/c/src/lib/libc/fpathconf.c
@@ -16,6 +16,7 @@
#endif
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
#include <unistd.h>
#include <errno.h>
@@ -78,7 +79,7 @@ long fpathconf(
return_value = the_limits->posix_sync_io;
break;
default:
- set_errno_and_return_minus_one( EINVAL );
+ rtems_set_errno_and_return_minus_one( EINVAL );
break;
}