UPSTREAM: Remove dependency on C23 __has_include()
Use build system to check header presence:
* getopt.h (from include/cli_classic.h)
* pciutils/pci.h (from include/platform/pci.h)
Tested with <getopt.h> and <pci/pci.h> using GNU Make 4.1, 4.2.1, 4.4.1
and Meson 0.56.0, 1.2.1 against GCC 13.2.1 and GCC 5.5-, 7.3-compatible
(EDG 4.14-, 5.1-based) on openSuSE Tumbleweed and a custom LFS distro.
(cherry picked from commit 8efe4fb7083b06650821bb6d4b700365bc46eeac)
Original-Change-Id: Ic544963ffd29626ae0a21bdddb1c78850cc43ec6
Original-Signed-off-by: Anton Samsonov <devel@zxlab.ru>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/77089
Original-Reviewed-by: Alexander Goncharov <chat@joursoir.net>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
GitOrigin-RevId: 8efe4fb7083b06650821bb6d4b700365bc46eeac
Change-Id: Ie283d2a0e6eac831026f11d2999a131aeb73d82d
Signed-off-by: chromeos-ci-prod <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/5068404
Tested-by: Hsuan Ting Chen <roccochen@chromium.org>
Commit-Queue: ChromeOS Auto Retry <chromeos-auto-retry@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Hsuan Ting Chen <roccochen@chromium.org>
6 files changed