summaryrefslogtreecommitdiff
path: root/src/fuchsia
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-05-24 13:49:11 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-05-24 14:15:58 +0200
commit5e2b0d88d43b15014f4b91fc2589b454e82bc6b1 (patch)
treed2a3a616ef753faeccdbe6d29560afbbbfc2ff04 /src/fuchsia
parentf775bea997307fe701e05952c1c97877b40c9f9f (diff)
downloadrust-libc-5e2b0d88d43b15014f4b91fc2589b454e82bc6b1.tar.gz
Fix locale_t in unix and fuchsia.
Closes #1055.
Diffstat (limited to 'src/fuchsia')
-rw-r--r--src/fuchsia/mod.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs
index cef48e5224..b8388b6eb1 100644
--- a/src/fuchsia/mod.rs
+++ b/src/fuchsia/mod.rs
@@ -27,6 +27,8 @@ pub type c_ulonglong = u64;
pub type intmax_t = i64;
pub type uintmax_t = u64;
+pub type locale_t = *mut ::c_void;
+
pub type size_t = usize;
pub type ptrdiff_t = isize;
pub type intptr_t = isize;
@@ -110,12 +112,7 @@ impl ::Copy for DIR {}
impl ::Clone for DIR {
fn clone(&self) -> DIR { *self }
}
-#[cfg_attr(feature = "extra_traits", derive(Debug))]
-pub enum locale_t {}
-impl ::Copy for locale_t {}
-impl ::Clone for locale_t {
- fn clone(&self) -> locale_t { *self }
-}
+
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum fpos64_t {} // TODO: fill this out with a struct
impl ::Copy for fpos64_t {}