diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-03-01 19:09:33 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-03-04 09:51:57 -0800 |
commit | a9d42a7c1e567fb18f835c9f352c0b0efad8391b (patch) | |
tree | 3ac159e43e6c58da4d7bbffad66175282d921be2 /test cases | |
parent | 8357548ca06ef3679a95b43af737a259407f7cc2 (diff) | |
download | meson-a9d42a7c1e567fb18f835c9f352c0b0efad8391b.zip meson-a9d42a7c1e567fb18f835c9f352c0b0efad8391b.tar.gz meson-a9d42a7c1e567fb18f835c9f352c0b0efad8391b.tar.bz2 |
test cases/common/103 has header symbol: fix for musl 1.2.5
musl 1.2.5 exposes this symbol in the default profile, and in future
will expose it unconditionally, as it is on track to becoming part of
POSIX.
So rather than maintaining a list of systems to run this on, let's
just skip testing the feature test macro if we find ppoll in the
default profile.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/103 has header symbol/meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test cases/common/103 has header symbol/meson.build b/test cases/common/103 has header symbol/meson.build index 4590491..4f493e8 100644 --- a/test cases/common/103 has header symbol/meson.build +++ b/test cases/common/103 has header symbol/meson.build @@ -18,10 +18,8 @@ foreach comp : [cc, cpp] assert (not comp.has_header_symbol('stdlol.h', 'int'), 'shouldn\'t be able to find "int" with invalid header') endforeach -# This is available on Glibc, Solaris & the BSD's, so just test for _GNU_SOURCE -# on Linux -if cc.has_function('ppoll') and host_machine.system() == 'linux' - assert (not cc.has_header_symbol('poll.h', 'ppoll'), 'ppoll should not be accessible without _GNU_SOURCE') +# Glibc requires _GNU_SOURCE for ppoll. Other libcs do not. +if cc.has_function('ppoll') and not cc.has_header_symbol('poll.h', 'ppoll') assert (cc.has_header_symbol('poll.h', 'ppoll', prefix : '#define _GNU_SOURCE'), 'ppoll should be accessible with _GNU_SOURCE') endif |