summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/res_state-not-declared.patch
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-11-07 14:53:10 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-11-07 14:53:10 +0100
commit54c14e2fa37f0ecb22469a16aff0e76d99ecf75c (patch)
tree3ffcc77915cc0f6c32933086ec2fbcbe80d0ba4b /pkgs/development/compilers/gcc/res_state-not-declared.patch
parent8da04338d799cafb394984e02166772f3218393c (diff)
downloadnixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.tar
nixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.tar.gz
nixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.tar.bz2
nixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.tar.lz
nixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.tar.xz
nixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.tar.zst
nixpkgs-54c14e2fa37f0ecb22469a16aff0e76d99ecf75c.zip
gcc-4.8: fix with glibc-2.26
Diffstat (limited to 'pkgs/development/compilers/gcc/res_state-not-declared.patch')
-rw-r--r--pkgs/development/compilers/gcc/res_state-not-declared.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc/res_state-not-declared.patch b/pkgs/development/compilers/gcc/res_state-not-declared.patch
new file mode 100644
index 00000000000..e970487786d
--- /dev/null
+++ b/pkgs/development/compilers/gcc/res_state-not-declared.patch
@@ -0,0 +1,13 @@
+diff --git a/libsanitizer/tsan/tsan_platform_linux.cc b/libsanitizer/tsan/tsan_platform_linux.cc
+index fe69430..49f5270 100644
+--- a/libsanitizer/tsan/tsan_platform_linux.cc
++++ b/libsanitizer/tsan/tsan_platform_linux.cc
+@@ -351,7 +351,7 @@ bool IsGlobalVar(uptr addr) {
+ // closes within glibc. The code is a pure hack.
+ int ExtractResolvFDs(void *state, int *fds, int nfd) {
+   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];