summarylogtreecommitdiffstats
path: root/res_state.diff
diff options
context:
space:
mode:
Diffstat (limited to 'res_state.diff')
-rw-r--r--res_state.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/res_state.diff b/res_state.diff
new file mode 100644
index 000000000000..03bf5c60bdd2
--- /dev/null
+++ b/res_state.diff
@@ -0,0 +1,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];