diff options
author | deischen <deischen@FreeBSD.org> | 2001-04-10 04:19:21 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-04-10 04:19:21 +0000 |
commit | dd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch) | |
tree | f253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libc_r/uthread/uthread_sendfile.c | |
parent | 3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff) | |
download | FreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.zip FreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.tar.gz |
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions.
Suggested by: bde
Diffstat (limited to 'lib/libc_r/uthread/uthread_sendfile.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_sendfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_sendfile.c b/lib/libc_r/uthread/uthread_sendfile.c index cb6f5d7..3df24f1 100644 --- a/lib/libc_r/uthread/uthread_sendfile.c +++ b/lib/libc_r/uthread/uthread_sendfile.c @@ -37,7 +37,7 @@ #include <pthread.h> #include "pthread_private.h" -#pragma weak sendfile=_sendfile +__weak_reference(_sendfile, sendfile); int _sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, |