diff options
author | 2017-05-14 19:24:37 (GMT) | |
---|---|---|
committer | 2017-05-14 22:23:34 (GMT) | |
commit | 131011493b7550b5ed4bdf241e8432aeae7694e8 (patch) | |
tree | e648006437fd070b04dd0223dc3a74e5bf83b3c9 /patches/gcc/7.1.0/952-bionic-errno.patch | |
parent | 22e4a3f4334ee74233e40e19f3a72187eed3bb91 (diff) |
Split the patch from CrystaX to separate commits
... and edit the biggest chunk as in previous 950-bionic-android.patch.
Also, drop arm_neon.h - it is a separate package, will be added
separately.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'patches/gcc/7.1.0/952-bionic-errno.patch')
-rw-r--r-- | patches/gcc/7.1.0/952-bionic-errno.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/gcc/7.1.0/952-bionic-errno.patch b/patches/gcc/7.1.0/952-bionic-errno.patch new file mode 100644 index 0000000..91f6ca3 --- /dev/null +++ b/patches/gcc/7.1.0/952-bionic-errno.patch @@ -0,0 +1,19 @@ +commit 6cd4ad106ef87a3c58b0c3478e78409b47000de0 +Author: Howard Chu <hyc@symas.com> +Date: Tue Apr 25 20:17:03 2017 -0700 + + Fix, errno is volatile int + +diff --git a/libstdc++-v3/src/filesystem/dir.cc b/libstdc++-v3/src/filesystem/dir.cc +index 6ff12d0..5bbd664 100644 +--- a/libstdc++-v3/src/filesystem/dir.cc ++++ b/libstdc++-v3/src/filesystem/dir.cc +@@ -147,7 +147,7 @@ fs::_Dir::advance(error_code* ec, directory_options options) + + int err = std::exchange(errno, 0); + const auto entp = readdir(dirp); +- std::swap(errno, err); ++ std::swap((int&)errno, err); + + if (entp) + { |