]> git.ipfire.org Git - thirdparty/gcc.git/commit
libsanitizer: Use pre-computed size of struct ustat for Linux
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 24 May 2018 20:21:54 +0000 (20:21 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 24 May 2018 20:21:54 +0000 (13:21 -0700)
commitf38743e936095f81b2f2199c7be9da15be412d1c
tree65e701af10dd0c1847a2792f8519da1930a76295
parent9572599d64bd076bcc4df774cd0d76429f89b81c
libsanitizer: Use pre-computed size of struct ustat for Linux

Cherry-pick compiler-rt revision 333213:

<sys/ustat.h> has been removed from glibc 2.28 by:

commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Mar 18 11:28:59 2018 +0800

    Deprecate ustat syscall interface

This patch uses pre-computed size of struct ustat for Linux.

PR sanitizer/85835
* sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
include <sys/ustat.h> for Linux.
(SIZEOF_STRUCT_USTAT): New.
(struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.

From-SVN: r260688
libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc