diff options
Diffstat (limited to 'lib/libpthread/thread/thr_write.c')
-rw-r--r-- | lib/libpthread/thread/thr_write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_write.c b/lib/libpthread/thread/thr_write.c index 40c4cc5..f25c606 100644 --- a/lib/libpthread/thread/thr_write.c +++ b/lib/libpthread/thread/thr_write.c @@ -42,7 +42,7 @@ #include "pthread_private.h" ssize_t -write(int fd, const void *buf, size_t nbytes) +_libc_write(int fd, const void *buf, size_t nbytes) { int blocking; int type; @@ -136,4 +136,6 @@ write(int fd, const void *buf, size_t nbytes) _thread_leave_cancellation_point(); return (ret); } + +__weak_reference(_libc_write, write); #endif |