1 diff --git a/libsanitizer/tsan/tsan_platform_linux.cc b/libsanitizer/tsan/tsan_platform_linux.cc
2 index fe69430..49f5270 100644
3 --- a/libsanitizer/tsan/tsan_platform_linux.cc
4 +++ b/libsanitizer/tsan/tsan_platform_linux.cc
5 @@ -351,7 +351,7 @@ bool IsGlobalVar(uptr addr) {
6 // closes within glibc. The code is a pure hack.
7 int ExtractResolvFDs(void *state, int *fds, int nfd) {
9 - __res_state *statp = (__res_state*)state;
10 + struct __res_state *statp = (struct __res_state*)state;
11 for (int i = 0; i < MAXNS && cnt < nfd; i++) {
12 if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1)
13 fds[cnt++] = statp->_u._ext.nssocks[i];