]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix non-glibc build of the test suite with s390x_features
authorRhys Kidd <rhyskidd@gmail.com>
Tue, 28 Jan 2020 08:33:03 +0000 (19:33 +1100)
committerRhys Kidd <rhyskidd@gmail.com>
Tue, 28 Jan 2020 08:33:03 +0000 (19:33 +1100)
commitd5e3b38f72b016b8ebc11c1546d4d464e97bc270
tree46c30328b91c056d8687ae0a9ae54f4982bf9d6d
parentdcceae252a3052d067944f303bea392a722a8b7d
Fix non-glibc build of the test suite with s390x_features

s390x_features is built unconditionally on a range of platforms, accordingly
any non-portable or glibc-specific functionality must be guarded.

Fixes error reported when running 'make check' or 'make regtest' on a platform
with an alternative libc that Valgrind supports, in this case Apple's libc:

  s390x_features.c:13:10: fatal error: 'features.h' file not found
  #include <features.h>  // __GLIBC_PREREQ
           ^
  1 error generated.

Fixes: 161d22f0a ("s390x: Fix vector facility (vx) check in test suite")
NEWS
tests/s390x_features.c