Skip to content

Commit 44fd808

Browse files
committed
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.
1 parent a4d4177 commit 44fd808

File tree

1 file changed

+3
-0
lines changed
  • src/unix/notbsd/linux/mips

1 file changed

+3
-0
lines changed

src/unix/notbsd/linux/mips/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ pub const MAP_HUGETLB: ::c_int = 0x080000;
537537

538538
pub const EFD_NONBLOCK: ::c_int = 0x80;
539539

540+
pub const F_RDLCK: ::c_int = 0;
541+
pub const F_WRLCK: ::c_int = 1;
542+
pub const F_UNLCK: ::c_int = 2;
540543
pub const F_GETLK: ::c_int = 14;
541544
pub const F_GETOWN: ::c_int = 23;
542545
pub const F_SETOWN: ::c_int = 24;

0 commit comments

Comments
 (0)