[compiler-rt] [msan] Correct the __libc_thr_keycreate prototype

Fixes build with GCC8.
This commit is contained in:
Kamil Rytarowski 2019-11-04 01:10:59 +01:00
parent e345bc6e65
commit 858b15cb9c
1 changed files with 3 additions and 2 deletions

View File

@ -1070,8 +1070,9 @@ INTERCEPTOR(int, pthread_key_create, __sanitizer_pthread_key_t *key,
}
#if SANITIZER_NETBSD
INTERCEPTOR(void, __libc_thr_keycreate, void *m, void (*dtor)(void *value)) \
ALIAS(WRAPPER_NAME(pthread_key_create));
INTERCEPTOR(int, __libc_thr_keycreate, __sanitizer_pthread_key_t *m,
void (*dtor)(void *value))
ALIAS(WRAPPER_NAME(pthread_key_create));
#endif
INTERCEPTOR(int, pthread_join, void *th, void **retval) {