Skip to content

Commit 63d1a8c

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/notbsd/linux/s390x.rs

+3
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,9 @@ pub const MAP_HUGETLB: ::c_int = 0x040000;
791791

792792
pub const EFD_NONBLOCK: ::c_int = 0x800;
793793

794+
pub const F_RDLCK: ::c_int = 0;
795+
pub const F_WRLCK: ::c_int = 1;
796+
pub const F_UNLCK: ::c_int = 2;
794797
pub const F_GETLK: ::c_int = 5;
795798
pub const F_GETOWN: ::c_int = 9;
796799
pub const F_SETOWN: ::c_int = 8;

0 commit comments

Comments
 (0)