Skip to content

Commit

Permalink
Merge pull request #134 from microsoft/saulparedes/fix_windows_build
Browse files Browse the repository at this point in the history
lib: Add type definition for Windows support
  • Loading branch information
Redent0r authored Dec 21, 2023
2 parents 2780493 + d967ae8 commit 684477e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/libs/oci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ extern crate serde;
extern crate serde_derive;
extern crate serde_json;

#[cfg(target_family = "unix")]
use libc::{self, mode_t};

#[cfg(target_family = "windows")]
#[allow(non_camel_case_types)]
type mode_t = u32;

use std::collections::HashMap;

mod serialize;
Expand Down

0 comments on commit 684477e

Please sign in to comment.