[compiler-rt] [msan] Correct the __libc_thr_keycreate prototype
authorKamil Rytarowski <n54@gmx.com>
Mon, 4 Nov 2019 00:10:59 +0000 (01:10 +0100)
committerKamil Rytarowski <n54@gmx.com>
Mon, 4 Nov 2019 00:10:59 +0000 (01:10 +0100)
Fixes build with GCC8.

compiler-rt/lib/msan/msan_interceptors.cpp

index 1d9d9f7..1c6956e 100644 (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) {