On 14/03/2012 15.32, Carmelo AMOROSO wrote:
On 14/03/2012 15.26, Carmelo AMOROSO wrote:
__libc_once is not available / needed when multithreading support
is not enabled, so authnone_create() calls authnone_create_once()
directly.
Signed-off-by: Carmelo Amoroso carmelo.amor...@st.com
---
libc/inet/rpc/auth_none.c |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/libc/inet/rpc/auth_none.c b/libc/inet/rpc/auth_none.c
index d066f6b..70bee5b 100644
--- a/libc/inet/rpc/auth_none.c
+++ b/libc/inet/rpc/auth_none.c
@@ -68,7 +68,9 @@ struct authnone_private_s {
};
static struct authnone_private_s authnone_private;
+#ifdef __UCLIBC_HAS_THREADS__
__libc_once_define(static, authnone_private_guard);
+#endif
static void authnone_create_once (void);
@@ -95,7 +97,11 @@ authnone_create_once (void)
AUTH *
authnone_create (void)
{
+#ifdef __UCLIBC_HAS_THREADS__
__libc_once (authnone_private_guard, authnone_create_once);
+#else
+ authnone_create_once();
+#endif
return authnone_private.no_client;
}
libc_hidden_def(authnone_create)
Tony,
could you try with this patch. If you still get the error, please try
including bits/libc-lock.h as let me know.
Unfortunately I can build only NPTL.
I've managed to built LT.old, so I've verified that it needs to include
bits/libc-lock.h
I'll post a v2 of the patch
Thanks,
Carmel
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc
___
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc