Skip to content

Commit

Permalink
lib: Add type definition for Windows support
Browse files Browse the repository at this point in the history
Signed-off-by: Saul Paredes <[email protected]>
  • Loading branch information
Redent0r committed Dec 21, 2023
1 parent 2780493 commit abe2af8
Showing 1 changed file with 6 additions and 0 deletions.
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 abe2af8

Please sign in to comment.