From d9d97cac3702b99a00cd113de98c41eb535d47ed Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 14 Oct 2018 12:11:30 +0300 Subject: [PATCH] patch modified from the gcc patch series, also dealing with ustat. --- .../sanitizer_platform_limits_posix.cc | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc index 29fea6e..570b9a5 100644 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -129,7 +129,6 @@ #include #include #include -#include #include #include #include @@ -222,7 +221,19 @@ namespace __sanitizer { #endif // SANITIZER_LINUX || SANITIZER_FREEBSD #if SANITIZER_LINUX && !SANITIZER_ANDROID - unsigned struct_ustat_sz = sizeof(struct ustat); + // Use pre-computed size of struct ustat to avoid which + // has been removed from glibc 2.28. +#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \ + || defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \ + || defined(__x86_64__) +#define SIZEOF_STRUCT_USTAT 32 +#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \ + || defined(__powerpc__) || defined(__s390__) +#define SIZEOF_STRUCT_USTAT 20 +#else +#error Unknown size of struct ustat +#endif + unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT; unsigned struct_rlimit64_sz = sizeof(struct rlimit64); unsigned struct_statvfs64_sz = sizeof(struct statvfs64); #endif // SANITIZER_LINUX && !SANITIZER_ANDROID -- 2.19.1 n value='committer'>committer
AgeCommit message (Expand)Author
2020-02-18gnu: connman: Update to 1.38....* gnu/packages/connman.scm (connman): Update to 1.38. [inputs]: Add libmnl. Tobias Geerinckx-Rice
2019-12-18gnu: cmst: Update to 2019.01.13....* gnu/packages/connman.scm (cmst): Update to 2019.01.13. Efraim Flashner
2019-10-15gnu: econnman: Build with python....* gnu/packages/connman.scm (econnman)[inputs]: Remove python-2, python2-dbus, python2-efl. Add python-wrapper, python-dbus, python-efl. Efraim Flashner
2019-10-15gnu: connman: Update build inputs....* gnu/packages/connman.scm (connman)[arguments]: Don't enable pptp, it isn't available. [native-inputs]: Remove python-2, add python-wrapper. [inputs]: Remove polkit, add xl2tpd. Efraim Flashner
2019-06-17gnu: cmst: Don't install files to usr....* gnu/packages/connman.scm (cmst)[arguments]: Move custom 'fix-Makefiles phase before 'build. Add more substitutions. Efraim Flashner
2019-04-15gnu: connman: Update to 1.37....* gnu/packages/connman.scm (connman): Update to 1.37. [arguments]: Remove unconventional comment (it's implicit in the name). Tobias Geerinckx-Rice
2019-04-15gnu: connman: Don't use NAME in source URI....* gnu/packages/connman.scm (connman)[source]: Hard-code NAME. Tobias Geerinckx-Rice