diff options
author | deischen <deischen@FreeBSD.org> | 2001-04-10 04:11:50 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-04-10 04:11:50 +0000 |
commit | 3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (patch) | |
tree | 2b932f3e877b99e65db8b74c4098b7e9dbb1d7e8 /lib/libc/stdio/_flock_stub.c | |
parent | 9afc57514e4beba89a3e84ca17a0f1875a536dd5 (diff) | |
download | FreeBSD-src-3c4f2f3db28798206129ecb0f94e4aa3fa0dd106.zip FreeBSD-src-3c4f2f3db28798206129ecb0f94e4aa3fa0dd106.tar.gz |
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. This macro is
improperly named, though, since a weak definition is not the same
thing as a weak reference.
Suggested by: bde
Diffstat (limited to 'lib/libc/stdio/_flock_stub.c')
-rw-r--r-- | lib/libc/stdio/_flock_stub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/_flock_stub.c b/lib/libc/stdio/_flock_stub.c index cc0cffe..2be797a 100644 --- a/lib/libc/stdio/_flock_stub.c +++ b/lib/libc/stdio/_flock_stub.c @@ -53,10 +53,10 @@ /* * Weak symbols for externally visible functions in this file: */ -#pragma weak flockfile=_flockfile -#pragma weak _flockfile_debug=_flockfile_debug_stub -#pragma weak ftrylockfile=_ftrylockfile -#pragma weak funlockfile=_funlockfile +__weak_reference(_flockfile, flockfile); +__weak_reference(_flockfile_debug_stub, _flockfile_debug); +__weak_reference(_ftrylockfile, ftrylockfile); +__weak_reference(_funlockfile, funlockfile); /* * We need to retain binary compatibility for a while. So pretend |