1
Fork 0

Port the standard crates to PNaCl/NaCl.

This commit is contained in:
Richard Diamond 2015-10-24 20:51:34 -05:00
parent 8d86d1a4e1
commit a7d93c939a
16 changed files with 272 additions and 298 deletions

View file

@ -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;