diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/_pthread_stubs.c | 2 | ||||
-rw-r--r-- | lib/libc/include/libc_private.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/_pthread_stubs.c b/lib/libc/gen/_pthread_stubs.c index 0555d78..ef9ecb4 100644 --- a/lib/libc/gen/_pthread_stubs.c +++ b/lib/libc/gen/_pthread_stubs.c @@ -56,7 +56,7 @@ static int stub_zero(void); #define PJT_DUAL_ENTRY(entry) \ (pthread_func_t)entry, (pthread_func_t)entry -pthread_func_t __thr_jtable[PJT_MAX][2] = { +pthread_func_entry_t __thr_jtable[PJT_MAX] = { {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_COND_BROADCAST */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_COND_DESTROY */ {PJT_DUAL_ENTRY(stub_zero)}, /* PJT_COND_INIT */ diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h index a588c8a..3736c56 100644 --- a/lib/libc/include/libc_private.h +++ b/lib/libc/include/libc_private.h @@ -102,8 +102,9 @@ typedef enum { } pjt_index_t; typedef int (*pthread_func_t)(void); +typedef pthread_func_t pthread_func_entry_t[2]; -extern pthread_func_t *__thr_jtable[]; +extern pthread_func_entry_t __thr_jtable[]; /* * This is a pointer in the C run-time startup code. It is used |