[git commit master] test/dlopen: use pthread_once directly
Austin Foxley
austinf at cetoncorp.com
Sat Oct 17 19:00:36 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=d74a3db4bf9632a474f44cebe7457e23d45027fb
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
test/dlopen/libtest.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/test/dlopen/libtest.c b/test/dlopen/libtest.c
index a306e4b..3fd137f 100644
--- a/test/dlopen/libtest.c
+++ b/test/dlopen/libtest.c
@@ -2,12 +2,10 @@
#include <pthread.h>
#include <stdint.h>
-extern int __pthread_once(void);
-
void dltest(uint32_t **value1, uint32_t **value2);
void dltest(uint32_t **value1, uint32_t **value2)
{
- *value1 = (uint32_t *) __pthread_once;
+ *value1 = (uint32_t *) pthread_once;
*value2 = (uint32_t *) pthread_self;
}
--
1.6.3.3
More information about the uClibc-cvs
mailing list