blob: 03bf5c60bdd2ddb1d775845eed59dfd93a898fe8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- gcc-5.3.0/libsanitizer/tsan/tsan_platform_linux.cc 2014-11-13 21:41:38.000000000 +0100
+++ gcc-5.3.0/libsanitizer/tsan/tsan_platform_linux.cc 2018-05-12 15:42:38.081399578 +0200
@@ -377,7 +377,7 @@ bool IsGlobalVar(uptr addr) {
int ExtractResolvFDs(void *state, int *fds, int nfd) {
#if SANITIZER_LINUX
int cnt = 0;
- __res_state *statp = (__res_state*)state;
+ struct __res_state *statp = (struct __res_state*)state;
for (int i = 0; i < MAXNS && cnt < nfd; i++) {
if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1)
fds[cnt++] = statp->_u._ext.nssocks[i];
|