summaryrefslogblamecommitdiff
path: root/user/rust/0015-flock-Fix-F_SETLK-F_SETLKW-on-32-bit-O_LARGEFILE.patch
blob: de9661d3a3bc1f3d9c94e7b1f19c4d657354f53e (plain) (tree)


























                                                                                          
From 9c13dec5a526a4a66dc45453ab1808ab9a1bb10b Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Tue, 9 Oct 2018 04:15:48 +0000
Subject: [PATCH 15/29] flock: Fix F_SETLK/F_SETLKW on 32-bit O_LARGEFILE

---
 src/librustc_data_structures/flock.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/librustc_data_structures/flock.rs b/src/librustc_data_structures/flock.rs
index ff1ebb11b7..d85017ec50 100644
--- a/src/librustc_data_structures/flock.rs
+++ b/src/librustc_data_structures/flock.rs
@@ -46,8 +46,8 @@ mod imp {
         pub const F_RDLCK: libc::c_short = 0;
         pub const F_WRLCK: libc::c_short = 1;
         pub const F_UNLCK: libc::c_short = 2;
-        pub const F_SETLK: libc::c_int = 6;
-        pub const F_SETLKW: libc::c_int = 7;
+        pub const F_SETLK: libc::c_int = libc::F_SETLK;
+        pub const F_SETLKW: libc::c_int = libc::F_SETLKW;
     }
 
     #[cfg(target_os = "freebsd")]
-- 
2.18.0