summaryrefslogtreecommitdiff
path: root/src/sys/stat.rs
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-08-09 09:32:56 -0700
committerBryant Mairs <bryant@mai.rs>2017-08-16 19:36:51 -0700
commiteabdced459c0108613db8363d3ed76e9fd966565 (patch)
tree26532fde8adf0ad575e275bbd75d00ab685acfb1 /src/sys/stat.rs
parentf067e73bdbb589a0e3c991eab2c26de8bb00e924 (diff)
downloadnix-eabdced459c0108613db8363d3ed76e9fd966565.zip
Match libc_bitflags! syntax to upstream bitflags!
Diffstat (limited to 'src/sys/stat.rs')
-rw-r--r--src/sys/stat.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sys/stat.rs b/src/sys/stat.rs
index b089d3b5..ee086323 100644
--- a/src/sys/stat.rs
+++ b/src/sys/stat.rs
@@ -8,15 +8,15 @@ use std::mem;
use std::os::unix::io::RawFd;
libc_bitflags!(
- pub flags SFlag: mode_t {
- S_IFIFO,
- S_IFCHR,
- S_IFDIR,
- S_IFBLK,
- S_IFREG,
- S_IFLNK,
- S_IFSOCK,
- S_IFMT,
+ pub struct SFlag: mode_t {
+ S_IFIFO;
+ S_IFCHR;
+ S_IFDIR;
+ S_IFBLK;
+ S_IFREG;
+ S_IFLNK;
+ S_IFSOCK;
+ S_IFMT;
}
);