Skip to content

Commit d377b52

Browse files
committed
fix glob symbol name on macOS aarch64
1 parent ea2bc2c commit d377b52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/unix/bsd/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,10 @@ extern "C" {
632632
egid: *mut ::gid_t,
633633
) -> ::c_int;
634634

635-
#[cfg_attr(target_os = "macos", link_name = "glob$INODE64")]
635+
#[cfg_attr(
636+
all(target_os = "macos", not(target_arch = "aarch64")),
637+
link_name = "glob$INODE64")
638+
]
636639
#[cfg_attr(target_os = "netbsd", link_name = "__glob30")]
637640
#[cfg_attr(
638641
all(target_os = "freebsd", any(freebsd11, freebsd10)),

0 commit comments

Comments
 (0)