Define missing F_RDLCK, F_WRLCK and F_UNLCK constants on linux-mips

These are defined in the fcntl.h glibc header on MIPS systems
on Linux but missing in the libc crate, so add them as they are
required for the file locking API in rustc.
This commit is contained in:
John Paul Adrian Glaubitz 2018-12-25 21:02:37 +01:00
parent a4d41775f3
commit 44fd808bcf

View File

@ -537,6 +537,9 @@ pub const MAP_HUGETLB: ::c_int = 0x080000;
pub const EFD_NONBLOCK: ::c_int = 0x80;
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 = 14;
pub const F_GETOWN: ::c_int = 23;
pub const F_SETOWN: ::c_int = 24;