diff options
Diffstat (limited to 'newlib/libc/sys/linux/fpathconf.c')
-rw-r--r-- | newlib/libc/sys/linux/fpathconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/fpathconf.c b/newlib/libc/sys/linux/fpathconf.c index dc7aaec57..6d006a11b 100644 --- a/newlib/libc/sys/linux/fpathconf.c +++ b/newlib/libc/sys/linux/fpathconf.c @@ -215,7 +215,7 @@ posix_fpathconf (fd, name) /* AIO is only allowed on regular files and block devices. */ struct stat64 st; - if (__fxstat64 (_STAT_VER, fd, &st) < 0 + if (fstat64 (fd, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode))) return -1; else |