diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-08-09 09:32:56 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-08-16 19:36:51 -0700 |
commit | eabdced459c0108613db8363d3ed76e9fd966565 (patch) | |
tree | 26532fde8adf0ad575e275bbd75d00ab685acfb1 /src/sys/stat.rs | |
parent | f067e73bdbb589a0e3c991eab2c26de8bb00e924 (diff) | |
download | nix-eabdced459c0108613db8363d3ed76e9fd966565.zip |
Match libc_bitflags! syntax to upstream bitflags!
Diffstat (limited to 'src/sys/stat.rs')
-rw-r--r-- | src/sys/stat.rs | 18 |
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; } ); |