Commit 858b15cb authored by Kamil Rytarowski's avatar Kamil Rytarowski
Browse files

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

Fixes build with GCC8.
parent e345bc6e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1070,7 +1070,8 @@ INTERCEPTOR(int, pthread_key_create, __sanitizer_pthread_key_t *key,
}

#if SANITIZER_NETBSD
INTERCEPTOR(void, __libc_thr_keycreate, void *m, void (*dtor)(void *value)) \
INTERCEPTOR(int, __libc_thr_keycreate, __sanitizer_pthread_key_t *m,
            void (*dtor)(void *value))
ALIAS(WRAPPER_NAME(pthread_key_create));
#endif