Work around definition of O_NOFOLLOW, and add target for only building and installing headers

This commit is contained in:
Jeremy Soller
2019-04-07 10:11:05 -06:00
parent f4fccc6d19
commit 2fdca9bd0a
4 changed files with 17 additions and 3 deletions
+3 -1
View File
@@ -17,4 +17,6 @@ pub const O_EXCL: c_int = 0x0800_0000;
pub const O_DIRECTORY: c_int = 0x1000_0000;
pub const O_PATH: c_int = 0x2000_0000;
pub const O_SYMLINK: c_int = 0x4000_0000;
pub const O_NOFOLLOW: c_int = 0x8000_0000;
// Negative to allow it to be used as int
// TODO: Fix negative values missing from includes
pub const O_NOFOLLOW: c_int = -0x8000_0000;