diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_fstatfs.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_fstatfs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc_r/uthread/uthread_fstatfs.c b/lib/libc_r/uthread/uthread_fstatfs.c index eac447a..a6a1884 100644 --- a/lib/libc_r/uthread/uthread_fstatfs.c +++ b/lib/libc_r/uthread/uthread_fstatfs.c @@ -37,10 +37,11 @@ #include <sys/param.h> #include <sys/mount.h> #include <sys/stat.h> -#ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" +#pragma weak fstatfs=_fstatfs + int _fstatfs(int fd, struct statfs * buf) { @@ -49,12 +50,9 @@ _fstatfs(int fd, struct statfs * buf) /* Lock the file descriptor for read: */ if ((ret = _FD_LOCK(fd, FD_READ, NULL)) == 0) { /* Get the file system status: */ - ret = _thread_sys_fstatfs(fd, buf); + ret = __sys_fstatfs(fd, buf); /* Unlock the file descriptor: */ _FD_UNLOCK(fd, FD_READ); } return (ret); } - -__strong_reference(_fstatfs, fstatfs); -#endif |