Skip to content

Commit 858b15c

Browse files
committed
[compiler-rt] [msan] Correct the __libc_thr_keycreate prototype
Fixes build with GCC8.
1 parent e345bc6 commit 858b15c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler-rt/lib/msan/msan_interceptors.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,9 @@ INTERCEPTOR(int, pthread_key_create, __sanitizer_pthread_key_t *key,
10701070
}
10711071

10721072
#if SANITIZER_NETBSD
1073-
INTERCEPTOR(void, __libc_thr_keycreate, void *m, void (*dtor)(void *value)) \
1074-
ALIAS(WRAPPER_NAME(pthread_key_create));
1073+
INTERCEPTOR(int, __libc_thr_keycreate, __sanitizer_pthread_key_t *m,
1074+
void (*dtor)(void *value))
1075+
ALIAS(WRAPPER_NAME(pthread_key_create));
10751076
#endif
10761077

10771078
INTERCEPTOR(int, pthread_join, void *th, void **retval) {

0 commit comments

Comments
 (0)