diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_fpathconf.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_fpathconf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_fpathconf.c b/lib/libc_r/uthread/uthread_fpathconf.c index 04fae27..8327b1c 100644 --- a/lib/libc_r/uthread/uthread_fpathconf.c +++ b/lib/libc_r/uthread/uthread_fpathconf.c @@ -26,21 +26,20 @@ * $FreeBSD$ */ #include <unistd.h> -#ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" +#pragma weak fpathconf=_fpathconf + long _fpathconf(int fd, int name) { long ret; if ((ret = _FD_LOCK(fd, FD_READ, NULL)) == 0) { - ret = _thread_sys_fpathconf(fd, name); + ret = __sys_fpathconf(fd, name); _FD_UNLOCK(fd, FD_READ); } return ret; } -__strong_reference(_fpathconf, fpathconf); -#endif |