summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/__error.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-04-10 04:11:50 +0000
committerdeischen <deischen@FreeBSD.org>2001-04-10 04:11:50 +0000
commit3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (patch)
tree2b932f3e877b99e65db8b74c4098b7e9dbb1d7e8 /lib/libc/sys/__error.c
parent9afc57514e4beba89a3e84ca17a0f1875a536dd5 (diff)
downloadFreeBSD-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/sys/__error.c')
-rw-r--r--lib/libc/sys/__error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/__error.c b/lib/libc/sys/__error.c
index 8c14b0f..3641e77 100644
--- a/lib/libc/sys/__error.c
+++ b/lib/libc/sys/__error.c
@@ -40,7 +40,7 @@ extern int errno;
* Declare a weak reference in case the application is not linked
* with libpthread.
*/
-#pragma weak __error=__error_unthreaded
+__weak_reference(__error_unthreaded, __error);
int *
__error_unthreaded()
OpenPOWER on IntegriCloud