Skip to content

Commit

Permalink
Merge pull request rust-lang#145 from dhuseby/fixing_O_ACCMODE
Browse files Browse the repository at this point in the history
Fixes rust-lang#144 by defining O_ACCMODE for BSD's
  • Loading branch information
alexcrichton committed Jan 21, 2016
2 parents f8da228 + 8c32faa commit af77843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ pub const TMP_MAX: ::c_uint = 308915776;
pub const O_RDONLY: ::c_int = 0;
pub const O_WRONLY: ::c_int = 1;
pub const O_RDWR: ::c_int = 2;
pub const O_ACCMODE: ::c_int = 3;
pub const O_APPEND: ::c_int = 8;
pub const O_CREAT: ::c_int = 512;
pub const O_EXCL: ::c_int = 2048;
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/openbsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub const L_tmpnam : ::c_uint = 1024;
pub const O_RDONLY : ::c_int = 0;
pub const O_WRONLY : ::c_int = 1;
pub const O_RDWR : ::c_int = 2;
pub const O_ACCMODE : ::c_int = 3;
pub const O_APPEND : ::c_int = 8;
pub const O_CREAT : ::c_int = 512;
pub const O_EXCL : ::c_int = 2048;
Expand Down

0 comments on commit af77843

Please sign in to comment.