[patch, gprofng, riscv64] Fix build on Linux riscv64
Andreas Schwab
schwab@suse.de
Mon Sep 23 16:26:17 GMT 2024
On Sep 23 2024, Sergey Fedorov wrote:
> @@ -46,8 +50,11 @@ __get_cpuid (unsigned int op ATTRIBUTE_UNUSED, unsigned int *eax,
> #include <sched.h>
> #include <sys/syscall.h>
> #include <unistd.h>
> +// This header does not exist in earlier versions.
> +#if defined(__linux__) && LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0)
> #include <asm/hwprobe.h>
> #endif
> +#endif
This could also use __has_include.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list