From d74a3db4bf9632a474f44cebe7457e23d45027fb Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Sat, 17 Oct 2009 11:54:57 -0700 Subject: test/dlopen: use pthread_once directly Signed-off-by: Austin Foxley --- test/dlopen/libtest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/dlopen') diff --git a/test/dlopen/libtest.c b/test/dlopen/libtest.c index a306e4bf7..3fd137f06 100644 --- a/test/dlopen/libtest.c +++ b/test/dlopen/libtest.c @@ -2,12 +2,10 @@ #include #include -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; } -- cgit v1.2.3