Line 0
Link Here
|
|
|
1 |
--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/mod.rs.orig 2018-05-21 17:06:47.000000000 +0200 |
2 |
+++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/mod.rs 2019-01-19 15:50:24.657324000 +0100 |
3 |
@@ -1,4 +1,3 @@ |
4 |
-pub type c_char = i8; |
5 |
pub type dev_t = u32; |
6 |
pub type mode_t = u16; |
7 |
pub type pthread_attr_t = *mut ::c_void; |
8 |
@@ -80,13 +79,6 @@ s! { |
9 |
pub sa_sigaction: ::sighandler_t, |
10 |
pub sa_flags: ::c_int, |
11 |
pub sa_mask: sigset_t, |
12 |
- } |
13 |
- |
14 |
- pub struct stack_t { |
15 |
- // In FreeBSD 11 and later, ss_sp is actually a void* |
16 |
- pub ss_sp: *mut ::c_char, |
17 |
- pub ss_size: ::size_t, |
18 |
- pub ss_flags: ::c_int, |
19 |
} |
20 |
|
21 |
pub struct sched_param { |
22 |
--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/mod.rs.orig 2018-05-21 17:06:47.000000000 +0200 |
23 |
+++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/mod.rs 2019-01-19 15:51:04.686746000 +0100 |
24 |
@@ -157,6 +157,13 @@ s! { |
25 |
pub sdl_slen: ::c_uchar, |
26 |
pub sdl_data: [::c_char; 46], |
27 |
} |
28 |
+ |
29 |
+ pub struct stack_t { |
30 |
+ pub ss_sp: *mut ::c_void, |
31 |
+ pub ss_size: ::size_t, |
32 |
+ pub ss_flags: ::c_int, |
33 |
+ } |
34 |
+ |
35 |
} |
36 |
|
37 |
pub const SIGEV_THREAD_ID: ::c_int = 4; |
38 |
@@ -1006,6 +1013,9 @@ cfg_if! { |
39 |
} else if #[cfg(target_arch = "aarch64")] { |
40 |
mod aarch64; |
41 |
pub use self::aarch64::*; |
42 |
+ } else if #[cfg(target_arch = "powerpc64")] { |
43 |
+ mod powerpc64; |
44 |
+ pub use self::powerpc64::*; |
45 |
} else { |
46 |
// Unknown target_arch |
47 |
} |
48 |
--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs.orig 2019-01-19 15:40:07.392580000 +0100 |
49 |
+++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs 2019-01-19 15:09:12.118962000 +0100 |
50 |
@@ -0,0 +1,31 @@ |
51 |
+pub type c_char = u8; |
52 |
+pub type c_long = i64; |
53 |
+pub type c_ulong = u64; |
54 |
+pub type time_t = i64; |
55 |
+pub type suseconds_t = i64; |
56 |
+ |
57 |
+s! { |
58 |
+ pub struct stat { |
59 |
+ pub st_dev: ::dev_t, |
60 |
+ pub st_ino: ::ino_t, |
61 |
+ pub st_mode: ::mode_t, |
62 |
+ pub st_nlink: ::nlink_t, |
63 |
+ pub st_uid: ::uid_t, |
64 |
+ pub st_gid: ::gid_t, |
65 |
+ pub st_rdev: ::dev_t, |
66 |
+ pub st_atime: ::time_t, |
67 |
+ pub st_atime_nsec: ::c_long, |
68 |
+ pub st_mtime: ::time_t, |
69 |
+ pub st_mtime_nsec: ::c_long, |
70 |
+ pub st_ctime: ::time_t, |
71 |
+ pub st_ctime_nsec: ::c_long, |
72 |
+ pub st_size: ::off_t, |
73 |
+ pub st_blocks: ::blkcnt_t, |
74 |
+ pub st_blksize: ::blksize_t, |
75 |
+ pub st_flags: ::fflags_t, |
76 |
+ pub st_gen: ::uint32_t, |
77 |
+ pub st_lspare: ::int32_t, |
78 |
+ pub st_birthtime: ::time_t, |
79 |
+ pub st_birthtime_nsec: ::c_long, |
80 |
+ } |
81 |
+} |
82 |
--- cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/aarch64.rs.orig 2019-01-19 16:51:17.722265000 +0100 |
83 |
+++ cargo-crates/libc-0.2.41/src/unix/bsd/freebsdlike/freebsd/aarch64.rs 2019-01-19 16:51:28.539267000 +0100 |
84 |
@@ -1,3 +1,4 @@ |
85 |
+pub type c_char = u8; |
86 |
pub type c_long = i64; |
87 |
pub type c_ulong = u64; |
88 |
pub type time_t = i64; |