meson: pass the right header when testing for posix_memalign
authorChristoph Reiter <reiter.christoph@gmail.com>
Mon, 21 May 2018 15:06:12 +0000 (17:06 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 21 May 2018 15:42:18 +0000 (16:42 +0100)
commit7699d66cb3df499e474c2eaa9ef8d682db0469b9
treef0805391dd07fbda5323b1946898cdf27bd80057
parentb244d06a879cea18e2f81a5169d587ae9132f8fd
meson: pass the right header when testing for posix_memalign

has_function() needs to know the header to correctly detect the function in
all cases.

This fixes the build under mingw-w64 where posix_memalign was wrongfully being
detected as available.

See this glib bug for a similar fix:
    https://bugzilla.gnome.org/show_bug.cgi?id=795876

https://bugzilla.gnome.org/show_bug.cgi?id=796309
meson.build