Skip to content

Commit

Permalink
openbsd port
Browse files Browse the repository at this point in the history
- remove multiple definition of stack_t
- make types resolv correctly
- correct target definitions
  - dragonfly is already defined as freebsdlike
  - bitrig is an openbsdlike
- imports should be public
  • Loading branch information
semarie committed Nov 4, 2015
1 parent 3bb2fef commit cb6ef24
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 448 deletions.
2 changes: 1 addition & 1 deletion src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ cfg_if! {
mod apple;
pub use self::apple::*;
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd",
target_os = "dragonfly"))] {
target_os = "bitrig"))] {
mod openbsdlike;
pub use self::openbsdlike::*;
} else if #[cfg(any(target_os = "freebsd", target_os = "dragonfly"))] {
Expand Down
24 changes: 12 additions & 12 deletions src/unix/bsd/openbsdlike/bitrig.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
s! {
pub struct glob_t {
pub gl_pathc: c_int,
pub gl_matchc: c_int,
pub gl_offs: c_int,
pub gl_flags: c_int,
pub gl_pathv: *mut *mut c_char,
__unused1: *mut c_void,
__unused2: *mut c_void,
__unused3: *mut c_void,
__unused4: *mut c_void,
__unused5: *mut c_void,
__unused6: *mut c_void,
__unused7: *mut c_void,
pub gl_pathc: ::c_int,
pub gl_matchc: ::c_int,
pub gl_offs: ::c_int,
pub gl_flags: ::c_int,
pub gl_pathv: *mut *mut ::c_char,
__unused1: *mut ::c_void,
__unused2: *mut ::c_void,
__unused3: *mut ::c_void,
__unused4: *mut ::c_void,
__unused5: *mut ::c_void,
__unused6: *mut ::c_void,
__unused7: *mut ::c_void,
}
}
Loading

0 comments on commit cb6ef24

Please sign in to comment.