Skip to content

Commit dfb7c0c

Browse files
committed
Added the proper libc header to libc-test; Removed some defines as they seem to be too new.
1 parent da27966 commit dfb7c0c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ fn main() {
288288
cfg.header("linux/if_ether.h");
289289
cfg.header("linux/if_tun.h");
290290
cfg.header("linux/net_tstamp.h");
291-
cfg.header("linux/inotify.h");
291+
cfg.header("sys/inotify.h");
292292

293293
// DCCP support
294294
if !uclibc && !musl && !emscripten {

src/unix/notbsd/linux/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,9 +1690,11 @@ pub const IN_MODIFY: ::uint32_t = 0x0000_0002;
16901690
pub const IN_ATTRIB: ::uint32_t = 0x0000_0004;
16911691
pub const IN_CLOSE_WRITE: ::uint32_t = 0x0000_0008;
16921692
pub const IN_CLOSE_NOWRITE: ::uint32_t = 0x0000_0010;
1693+
pub const IN_CLOSE: ::uint32_t = (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE);
16931694
pub const IN_OPEN: ::uint32_t = 0x0000_0020;
16941695
pub const IN_MOVED_FROM: ::uint32_t = 0x0000_0040;
16951696
pub const IN_MOVED_TO: ::uint32_t = 0x0000_0080;
1697+
pub const IN_MOVE: ::uint32_t = (IN_MOVED_FROM | IN_MOVED_TO);
16961698
pub const IN_CREATE: ::uint32_t = 0x0000_0100;
16971699
pub const IN_DELETE: ::uint32_t = 0x0000_0200;
16981700
pub const IN_DELETE_SELF: ::uint32_t = 0x0000_0400;
@@ -1702,15 +1704,12 @@ pub const IN_UNMOUNT: ::uint32_t = 0x0000_2000;
17021704
pub const IN_Q_OVERFLOW: ::uint32_t = 0x0000_4000;
17031705
pub const IN_IGNORED: ::uint32_t = 0x0000_8000;
17041706

1705-
pub const IN_CLOSE: ::uint32_t = (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE);
1706-
pub const IN_MOVE: ::uint32_t = (IN_MOVED_FROM | IN_MOVED_TO);
1707-
17081707
pub const IN_ONLYDIR: ::uint32_t = 0x0100_0000;
17091708
pub const IN_DONT_FOLLOW: ::uint32_t = 0x0200_0000;
1710-
pub const IN_EXCL_UNLINK: ::uint32_t = 0x0400_0000;
1709+
// pub const IN_EXCL_UNLINK: ::uint32_t = 0x0400_0000;
17111710

1712-
pub const IN_MASK_CREATE: ::uint32_t = 0x1000_0000;
1713-
pub const IN_MASK_ADD: ::uint32_t = 0x2000_0000;
1711+
// pub const IN_MASK_CREATE: ::uint32_t = 0x1000_0000;
1712+
// pub const IN_MASK_ADD: ::uint32_t = 0x2000_0000;
17141713
pub const IN_ISDIR: ::uint32_t = 0x4000_0000;
17151714
pub const IN_ONESHOT: ::uint32_t = 0x8000_0000;
17161715

0 commit comments

Comments
 (0)