summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/__error.c
diff options
context:
space:
mode:
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