about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-08-14 15:18:14 -0400
committerCorey Richardson <corey@octayn.net>2014-08-20 21:02:24 -0400
commit2dc2ac1e6b382b8c658071f61c3f95ae444dcc16 (patch)
tree6da6e648ec0fd760354cdcb235fbd7edb5a35c14 /src/libnative
parent0cffa32c21b08cec443dd2d0388e39cf381b6bfc (diff)
downloadrust-2dc2ac1e6b382b8c658071f61c3f95ae444dcc16.tar.gz
rust-2dc2ac1e6b382b8c658071f61c3f95ae444dcc16.zip
liblibc: don't use int/uint for intptr_t/uintptr_t
int/uint aren't considered FFI safe, replace them with the actual type they
represent (i64/u64 or i32/u32). This is a breaking change, but at most a cast
to `uint` or `int` needs to be added.

[breaking-change]
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/c_unix.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libnative/io/c_unix.rs b/src/libnative/io/c_unix.rs
index 1f8584cbd09..d22ce25c778 100644
--- a/src/libnative/io/c_unix.rs
+++ b/src/libnative/io/c_unix.rs
@@ -235,6 +235,7 @@ mod signal {
     pub type sigset_t = u32;
     #[cfg(target_os = "freebsd")]
     #[cfg(target_os = "dragonfly")]
+    #[repr(C)]
     pub struct sigset_t {
         bits: [u32, ..4],
     }