Skip to content

Commit 21651ee

Browse files
uses new Os enum instead of strings
1 parent 749e9d4 commit 21651ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/unix/foreign_items.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
491491
"posix_fallocate" => {
492492
// posix_fallocate is not supported by macos.
493493
this.check_target_os(
494-
&["linux", "freebsd", "solaris", "illumos", "android"],
494+
&[Os::Linux, Os::FreeBsd, Os::Solaris, Os::Illumos, Os::Android],
495495
link_name,
496496
)?;
497497
let [fd, offset, len] = this.check_shim_sig(
@@ -512,7 +512,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
512512
"posix_fallocate64" => {
513513
// posix_fallocate is not supported by macos.
514514
this.check_target_os(
515-
&["linux", "freebsd", "solaris", "illumos", "android"],
515+
&[Os::Linux, Os::FreeBsd, Os::Solaris, Os::Illumos, Os::Android],
516516
link_name,
517517
)?;
518518
let [fd, offset, len] = this.check_shim_sig(

0 commit comments

Comments
 (0)