Skip to content

Commit 04a5e75

Browse files
committed
Auto merge of rust-lang#751 - alexcrichton:sparc, r=alexcrichton
Fix compile on sparc64
2 parents 9100c0f + e5d4c13 commit 04a5e75

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
#![cfg_attr(all(target_os = "emscripten", target_arch = "wasm32"), doc(
7979
html_root_url = "https://doc.rust-lang.org/libc/wasm32-unknown-emscripten"
8080
))]
81+
#![cfg_attr(all(target_os = "linux", target_arch = "xparc64"), doc(
82+
html_root_url = "https://doc.rust-lang.org/libc/sparc64-unknown-linux-gnu"
83+
))]
8184

8285
// Attributes needed when building as part of the standard library
8386
#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))]

src/unix/notbsd/linux/other/b64/sparc64.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,36 @@ s! {
5252
__reserved: [::c_long; 2],
5353
}
5454

55+
pub struct statfs64 {
56+
pub f_type: ::__fsword_t,
57+
pub f_bsize: ::__fsword_t,
58+
pub f_blocks: u64,
59+
pub f_bfree: u64,
60+
pub f_bavail: u64,
61+
pub f_files: u64,
62+
pub f_ffree: u64,
63+
pub f_fsid: ::fsid_t,
64+
pub f_namelen: ::__fsword_t,
65+
pub f_frsize: ::__fsword_t,
66+
pub f_flags: ::__fsword_t,
67+
pub f_spare: [::__fsword_t; 4],
68+
}
69+
70+
pub struct statvfs64 {
71+
pub f_bsize: ::c_ulong,
72+
pub f_frsize: ::c_ulong,
73+
pub f_blocks: u64,
74+
pub f_bfree: u64,
75+
pub f_bavail: u64,
76+
pub f_files: u64,
77+
pub f_ffree: u64,
78+
pub f_favail: u64,
79+
pub f_fsid: ::c_ulong,
80+
pub f_flag: ::c_ulong,
81+
pub f_namemax: ::c_ulong,
82+
__f_spare: [::c_int; 6],
83+
}
84+
5585
pub struct pthread_attr_t {
5686
__size: [u64; 7]
5787
}

0 commit comments

Comments
 (0)