File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed
src/unix/linux_like/linux/gnu/b32 Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,13 @@ pub const MCL_ONFAULT: ::c_int = 0x0004;
341
341
pub const POLLWRNORM : :: c_short = 0x100 ;
342
342
pub const POLLWRBAND : :: c_short = 0x200 ;
343
343
344
- pub const F_GETLK : :: c_int = 5 ;
344
+ cfg_if ! {
345
+ if #[ cfg( gnu_time64_abi) ] {
346
+ pub const F_GETLK : :: c_int = 12 ;
347
+ } else {
348
+ pub const F_GETLK : :: c_int = 5 ;
349
+ }
350
+ }
345
351
pub const F_GETOWN : :: c_int = 9 ;
346
352
pub const F_SETOWN : :: c_int = 8 ;
347
353
Original file line number Diff line number Diff line change @@ -708,7 +708,13 @@ pub const MAP_HUGETLB: ::c_int = 0x080000;
708
708
709
709
pub const EFD_NONBLOCK : :: c_int = 0x80 ;
710
710
711
- pub const F_GETLK : :: c_int = 14 ;
711
+ cfg_if ! {
712
+ if #[ cfg( gnu_time64_abi) ] {
713
+ pub const F_GETLK : :: c_int = 33 ;
714
+ } else {
715
+ pub const F_GETLK : :: c_int = 14 ;
716
+ }
717
+ }
712
718
pub const F_GETOWN : :: c_int = 23 ;
713
719
pub const F_SETOWN : :: c_int = 24 ;
714
720
Original file line number Diff line number Diff line change @@ -299,7 +299,13 @@ pub const MCL_ONFAULT: ::c_int = 0x8000;
299
299
pub const POLLWRNORM : :: c_short = 0x100 ;
300
300
pub const POLLWRBAND : :: c_short = 0x200 ;
301
301
302
- pub const F_GETLK : :: c_int = 5 ;
302
+ cfg_if ! {
303
+ if #[ cfg( gnu_time64_abi) ] {
304
+ pub const F_GETLK : :: c_int = 12 ;
305
+ } else {
306
+ pub const F_GETLK : :: c_int = 5 ;
307
+ }
308
+ }
303
309
pub const F_GETOWN : :: c_int = 9 ;
304
310
pub const F_SETOWN : :: c_int = 8 ;
305
311
Original file line number Diff line number Diff line change @@ -492,7 +492,13 @@ pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
492
492
pub const SOCK_STREAM : :: c_int = 1 ;
493
493
pub const SOCK_DGRAM : :: c_int = 2 ;
494
494
495
- pub const F_GETLK : :: c_int = 5 ;
495
+ cfg_if ! {
496
+ if #[ cfg( gnu_time64_abi) ] {
497
+ pub const F_GETLK : :: c_int = 12 ;
498
+ } else {
499
+ pub const F_GETLK : :: c_int = 5 ;
500
+ }
501
+ }
496
502
pub const F_GETOWN : :: c_int = 9 ;
497
503
pub const F_SETOWN : :: c_int = 8 ;
498
504
You can’t perform that action at this time.
0 commit comments