]> git.ipfire.org Git - thirdparty/qemu.git/commit
meson: Use osdep_prefix for strchrnul()
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 24 Apr 2025 04:50:14 +0000 (13:50 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:09:58 +0000 (17:09 +0200)
commita5b30be534538dc6e44a68ce9734e45dd08f52ec
tree2caf99c46ebd93cbb2403212adaaba3189c1ddac
parent797150d69d2edba8b1bd4a7d8c7ba2df1219c503
meson: Use osdep_prefix for strchrnul()

macOS SDK may have the symbol of strchrnul(), but it is actually
available only on macOS 15.4 or later and that fact is codified in
string.h. Include the header file using osdep_prefix to check if the
function is available on the deployment target.

Cc: qemu-stable@nongnu.org
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250424-buildsys-v1-4-97655e3b25d7@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
meson.build