Commit | Line | Data |
---|---|---|
0b93d04a LC |
1 | This is a backport of part of this patch from 6.5 to 4.8: |
2 | ||
3 | https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=8937b94d1a643fd9760714642296d034a45254a8 | |
4 | ||
5 | --- a/libsanitizer/tsan/tsan_platform_linux.cc | |
6 | +++ b/libsanitizer/tsan/tsan_platform_linux.cc | |
7 | @@ -351,7 +351,7 @@ bool IsGlobalVar(uptr addr) { | |
8 | // closes within glibc. The code is a pure hack. | |
9 | int ExtractResolvFDs(void *state, int *fds, int nfd) { | |
10 | int cnt = 0; | |
11 | - __res_state *statp = (__res_state*)state; | |
12 | + struct __res_state *statp = (struct __res_state*)state; | |
13 | for (int i = 0; i < MAXNS && cnt < nfd; i++) { | |
14 | if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1) | |
15 | fds[cnt++] = statp->_u._ext.nssocks[i]; |