summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2018-12-25 21:03:13 +0100
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2018-12-25 21:03:13 +0100
commit63d1a8c160c15ef729db24d5e82b1af8540ca46f (patch)
tree9da20c96912e933862eb334ae11247c62820fb96
parent44fd808bcff815e8303528131839b65525b1b961 (diff)
downloadrust-libc-63d1a8c160c15ef729db24d5e82b1af8540ca46f.tar.gz
Define missing F_RDLCK, F_WRLCK and F_UNLCK constants on linux-s390x
These are defined in the fcntl.h glibc header on s390x systems on Linux but missing in the libc crate, so add them as they are required for the file locking API in rustc.
-rw-r--r--src/unix/notbsd/linux/s390x.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/s390x.rs b/src/unix/notbsd/linux/s390x.rs
index 9196f88b45..9e3814f3c5 100644
--- a/src/unix/notbsd/linux/s390x.rs
+++ b/src/unix/notbsd/linux/s390x.rs
@@ -791,6 +791,9 @@ pub const MAP_HUGETLB: ::c_int = 0x040000;
pub const EFD_NONBLOCK: ::c_int = 0x800;
+pub const F_RDLCK: ::c_int = 0;
+pub const F_WRLCK: ::c_int = 1;
+pub const F_UNLCK: ::c_int = 2;
pub const F_GETLK: ::c_int = 5;
pub const F_GETOWN: ::c_int = 9;
pub const F_SETOWN: ::c_int = 8;