mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Only mock $INODE64 symbols on x86_64 macOS
The version of macOS running on Apple Silicon doesn't need to concern itself with backwards compatibility with 32-bit applications, and so it could jettison all the symbol aliasing shenanigans involved. https://gitlab.com/libvirt/libvirt/-/issues/121 Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
This commit is contained in:
@@ -936,7 +936,7 @@ init_syms(void)
|
||||
VIR_MOCK_REAL_INIT(__open_2);
|
||||
# endif /* ! __GLIBC__ */
|
||||
VIR_MOCK_REAL_INIT(close);
|
||||
# ifdef __APPLE__
|
||||
# if defined(__APPLE__) && defined(__x86_64__)
|
||||
VIR_MOCK_REAL_INIT_ALIASED(opendir, "opendir$INODE64");
|
||||
# else
|
||||
VIR_MOCK_REAL_INIT(opendir);
|
||||
|
||||
Reference in New Issue
Block a user