]> git.ipfire.org Git - thirdparty/elfutils.git/commit
backends: Guard x86_sample_* function calls behind HAVE_X86_INITREG_SAMPLE
authorAaron Merey <amerey@redhat.com>
Fri, 24 Oct 2025 16:17:57 +0000 (12:17 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 24 Oct 2025 16:23:56 +0000 (12:23 -0400)
commit6f2dafdd1681c7f27dd1b0b3d8bcead2dc01a260
tree772a0b525b4a103d7fec226f3752edcfbae94f43
parent3ce0d5ed6f878be84ff6a9962885fbe8101b1acb
backends: Guard x86_sample_* function calls behind HAVE_X86_INITREG_SAMPLE

Avoid "implicit declaration" compile errors on non-x86_64/i386 arches
by calling x86_sample_* functions only when x86_initreg_sample.c is
included in the build.

Signed-off-by: Aaron Merey <amerey@redhat.com>
backends/i386_initreg_sample.c
backends/x86_64_initreg_sample.c