Port the standard crates to PNaCl/NaCl.
This commit is contained in:
parent
8d86d1a4e1
commit
a7d93c939a
16 changed files with 272 additions and 298 deletions
|
@ -77,16 +77,16 @@ mod inner {
|
|||
|
||||
// Apparently android provides this in some other library?
|
||||
// Bitrig's RT extensions are in the C library, not a separate librt
|
||||
// OpenBSD provide it via libc
|
||||
// OpenBSD and NaCl provide it via libc
|
||||
#[cfg(not(any(target_os = "android",
|
||||
target_os = "bitrig",
|
||||
target_os = "netbsd",
|
||||
target_os = "openbsd",
|
||||
target_env = "musl")))]
|
||||
target_env = "musl",
|
||||
target_os = "nacl")))]
|
||||
#[link(name = "rt")]
|
||||
extern {}
|
||||
|
||||
|
||||
extern {
|
||||
#[cfg_attr(target_os = "netbsd", link_name = "__clock_gettime50")]
|
||||
fn clock_gettime(clk_id: libc::c_int, tp: *mut libc::timespec) -> libc::c_int;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue