Skip to content

meson: make AF_INET6 check work with stricter compiler flags

Alan Coopersmith requested to merge alanc/xserver:ipv6-test into master

Previously it failed with:

_build/meson-private/tmpr7qpcbo1/testfile.c: In function 'main':
_build/meson-private/tmpr7qpcbo1/testfile.c:7:5:
 error: old-style function definition [-Werror=old-style-definition]
    7 | int main() { int foo = AF_INET6; }
      |     ^~~~
_build/meson-private/tmpr7qpcbo1/testfile.c:7:18:
 warning: unused variable 'foo' [-Wunused-variable]
    7 | int main() { int foo = AF_INET6; }
      |                  ^~~

Fixes: bc55a98d ("meson: explicitly check whether AF_INET6 is available") from !1539 (merged) by @metux
Signed-off-by: Alan Coopersmith

Merge request reports

Loading