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 @@ -397,7 +397,13 @@ pub const MCL_ONFAULT: c_int = 0x0004;
397
397
pub const POLLWRNORM : c_short = 0x100 ;
398
398
pub const POLLWRBAND : c_short = 0x200 ;
399
399
400
- pub const F_GETLK : c_int = 5 ;
400
+ cfg_if ! {
401
+ if #[ cfg( gnu_file_offset_bits64) ] {
402
+ pub const F_GETLK : c_int = 12 ;
403
+ } else {
404
+ pub const F_GETLK : c_int = 5 ;
405
+ }
406
+ }
401
407
pub const F_GETOWN : c_int = 9 ;
402
408
pub const F_SETOWN : c_int = 8 ;
403
409
Original file line number Diff line number Diff line change @@ -745,7 +745,13 @@ pub const MAP_HUGETLB: c_int = 0x080000;
745
745
746
746
pub const EFD_NONBLOCK : c_int = 0x80 ;
747
747
748
- pub const F_GETLK : c_int = 14 ;
748
+ cfg_if ! {
749
+ if #[ cfg( gnu_file_offset_bits64) ] {
750
+ pub const F_GETLK : c_int = 33 ;
751
+ } else {
752
+ pub const F_GETLK : c_int = 14 ;
753
+ }
754
+ }
749
755
pub const F_GETOWN : c_int = 23 ;
750
756
pub const F_SETOWN : c_int = 24 ;
751
757
Original file line number Diff line number Diff line change @@ -301,7 +301,13 @@ pub const MCL_ONFAULT: c_int = 0x8000;
301
301
pub const POLLWRNORM : c_short = 0x100 ;
302
302
pub const POLLWRBAND : c_short = 0x200 ;
303
303
304
- pub const F_GETLK : c_int = 5 ;
304
+ cfg_if ! {
305
+ if #[ cfg( gnu_file_offset_bits64) ] {
306
+ pub const F_GETLK : c_int = 12 ;
307
+ } else {
308
+ pub const F_GETLK : c_int = 5 ;
309
+ }
310
+ }
305
311
pub const F_GETOWN : c_int = 9 ;
306
312
pub const F_SETOWN : c_int = 8 ;
307
313
Original file line number Diff line number Diff line change @@ -499,7 +499,13 @@ pub const SA_NOCLDWAIT: c_int = 0x00000002;
499
499
pub const SOCK_STREAM : c_int = 1 ;
500
500
pub const SOCK_DGRAM : c_int = 2 ;
501
501
502
- pub const F_GETLK : c_int = 5 ;
502
+ cfg_if ! {
503
+ if #[ cfg( gnu_file_offset_bits64) ] {
504
+ pub const F_GETLK : c_int = 12 ;
505
+ } else {
506
+ pub const F_GETLK : c_int = 5 ;
507
+ }
508
+ }
503
509
pub const F_GETOWN : c_int = 9 ;
504
510
pub const F_SETOWN : c_int = 8 ;
505
511
You can’t perform that action at this time.
0 commit comments