]> git.ipfire.org Git - thirdparty/kmod.git/commit
meson: use has_header_symbol for checking declarations
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 15 Sep 2024 18:04:19 +0000 (19:04 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 17 Sep 2024 03:01:34 +0000 (22:01 -0500)
commita2396d385bbd86caaec1302f8ec69e746bd037c8
tree7939ab039659c3fdbe6ddb5edb5c2f6e15665423
parent7c810bc191f4a591cebbdaee1a9fb7a196da82a8
meson: use has_header_symbol for checking declarations

Currently we use has_function, which will construct local declaration
and see if the program links successfully. What we're really interested
is if the referenced header has a declaration of the respective symbol.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/131
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
meson.build