Skip to content

Commit 87b813a

Browse files
committed
Moved inotify_rm_watch out of the generic notbsd target and into specific linux and android targets because the second argument has a different type in android and linux.
1 parent f09346c commit 87b813a

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

libc-test/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ fn do_ctest() {
153153
cfg.header("xlocale.h");
154154
cfg.header("utmp.h");
155155
cfg.header("ifaddrs.h");
156-
cfg.header("sys/inotify.h");
157156
if i686 || x86_64 {
158157
cfg.header("sys/reg.h");
159158
}
@@ -263,7 +262,6 @@ fn do_ctest() {
263262
cfg.header("sys/personality.h");
264263
cfg.header("sys/swap.h");
265264
cfg.header("pty.h");
266-
cfg.header("sys/inotify.h");
267265
if !uclibc {
268266
cfg.header("sys/sysinfo.h");
269267
}

src/unix/notbsd/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,7 @@ extern {
19541954
f: extern fn(*mut ::c_void) -> *mut ::c_void,
19551955
value: *mut ::c_void) -> ::c_int;
19561956
pub fn __errno() -> *mut ::c_int;
1957+
pub fn inotify_rm_watch(fd: ::c_int, wd: ::uint32_t) -> ::c_int;
19571958
}
19581959

19591960
cfg_if! {

src/unix/notbsd/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,6 +2291,7 @@ extern {
22912291
nobj: ::size_t,
22922292
stream: *mut ::FILE
22932293
) -> ::size_t;
2294+
pub fn inotify_rm_watch(fd: ::c_int, wd: ::c_int) -> ::c_int;
22942295
}
22952296

22962297
cfg_if! {

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,6 @@ extern {
14251425
pub fn inotify_add_watch(fd: ::c_int,
14261426
path: *const ::c_char,
14271427
mask: ::uint32_t) -> ::c_int;
1428-
pub fn inotify_rm_watch(fd: ::c_int, wd: ::c_int) -> ::c_int;
14291428
}
14301429

14311430
cfg_if! {

0 commit comments

Comments
 (0)