summarylogtreecommitdiffstats
path: root/0002-gcc-5.4-__res_state.patch
diff options
context:
space:
mode:
Diffstat (limited to '0002-gcc-5.4-__res_state.patch')
-rw-r--r--0002-gcc-5.4-__res_state.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/0002-gcc-5.4-__res_state.patch b/0002-gcc-5.4-__res_state.patch
new file mode 100644
index 000000000000..e198be63bce8
--- /dev/null
+++ b/0002-gcc-5.4-__res_state.patch
@@ -0,0 +1,11 @@
+--- libsanitizer/tsan/tsan_platform_linux.cc.orig 2018-02-03 18:26:53.153703109 +0100
++++ libsanitizer/tsan/tsan_platform_linux.cc 2018-02-03 18:27:30.326068569 +0100
+@@ -377,7 +377,7 @@
+ int ExtractResolvFDs(void *state, int *fds, int nfd) {
+ #if SANITIZER_LINUX
+ int cnt = 0;
+- __res_state *statp = (__res_state*)state;
++ res_state statp = (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];