summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-03-25 21:34:54 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-03-26 08:31:46 +0100
commit8abce839fc270e4bd25ba8879c76b766b93fd490 (patch)
tree03bb40ddf1b14ae2ac46b0812620dabbd6248fa5
parentc217e2f9be78e028a8bf1ec8a63131e7379594a2 (diff)
downloadrust-libc-8abce839fc270e4bd25ba8879c76b766b93fd490.tar.gz
Fix build
-rw-r--r--src/unix/notbsd/android/mod.rs14
-rw-r--r--src/unix/notbsd/linux/mod.rs14
2 files changed, 14 insertions, 14 deletions
diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs
index 0523016622..f7fe61a21d 100644
--- a/src/unix/notbsd/android/mod.rs
+++ b/src/unix/notbsd/android/mod.rs
@@ -190,6 +190,13 @@ s! {
pub ipi6_addr: ::in6_addr,
pub ipi6_ifindex: ::c_int,
}
+
+ pub struct inotify_event {
+ pub wd: ::c_int,
+ pub mask: ::uint32_t,
+ pub cookie: ::uint32_t,
+ pub len: ::uint32_t
+ }
}
s_no_extra_traits!{
@@ -249,13 +256,6 @@ s_no_extra_traits!{
pub ivlen: u32,
pub iv: [::c_uchar; 0],
}
-
- pub struct inotify_event {
- pub wd: ::c_int,
- pub mask: ::uint32_t,
- pub cookie: ::uint32_t,
- pub len: ::uint32_t
- }
}
cfg_if! {
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index f9b5a6130d..14c2463fa9 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -493,6 +493,13 @@ s! {
pub updated: ::c_ulong,
pub ha: [::c_uchar; ::MAX_ADDR_LEN],
}
+
+ pub struct inotify_event {
+ pub wd: ::c_int,
+ pub mask: ::uint32_t,
+ pub cookie: ::uint32_t,
+ pub len: ::uint32_t
+ }
}
s_no_extra_traits!{
@@ -524,13 +531,6 @@ s_no_extra_traits!{
pub ivlen: u32,
pub iv: [::c_uchar; 0],
}
-
- pub struct inotify_event {
- pub wd: ::c_int,
- pub mask: ::uint32_t,
- pub cookie: ::uint32_t,
- pub len: ::uint32_t
- }
}
cfg_if! {