summaryrefslogtreecommitdiff
path: root/src/mqueue.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mqueue.rs')
-rw-r--r--src/mqueue.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mqueue.rs b/src/mqueue.rs
index e578d5e7..b9db3bab 100644
--- a/src/mqueue.rs
+++ b/src/mqueue.rs
@@ -5,7 +5,7 @@
use Result;
use errno::Errno;
-use libc::{self, c_char, c_long, mode_t, mqd_t, size_t};
+use libc::{self, c_char, c_long, mqd_t, size_t};
use std::ffi::CString;
use sys::stat::Mode;
use std::mem;
@@ -76,7 +76,7 @@ pub fn mq_open(name: &CString,
Some(mq_attr) => unsafe {
libc::mq_open(name.as_ptr(),
oflag.bits(),
- mode.bits() as mode_t,
+ mode.bits() as libc::c_int,
&mq_attr.mq_attr as *const libc::mq_attr)
},
None => unsafe { libc::mq_open(name.as_ptr(), oflag.bits()) },