]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 29 Apr 2025 07:07:56 +0000 (10:07 +0300)
commit8a9a7193143a75c54eb6c184e583c5c2b8935f18
tree47987e7a0ed185a682c53c20cc1b07957ea9a7c8
parente1ccfea380ceafed77269735eee4b3b862dc8b6f
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>
(cherry picked from commit a5b30be534538dc6e44a68ce9734e45dd08f52ec)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
meson.build