Skip to content

Commit d04a160

Browse files
committed
Fix ELAST for DragonFly
1 parent d120b92 commit d04a160

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ pub const O_CLOEXEC: ::c_int = 0x00020000;
6868
pub const F_GETLK: ::c_int = 7;
6969
pub const F_SETLK: ::c_int = 8;
7070
pub const F_SETLKW: ::c_int = 9;
71+
pub const ELAST: ::c_int = 99;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pub const O_CLOEXEC: ::c_int = 0x00100000;
5353
pub const F_GETLK: ::c_int = 11;
5454
pub const F_SETLK: ::c_int = 12;
5555
pub const F_SETLKW: ::c_int = 13;
56+
pub const ELAST: ::c_int = 96;
5657

5758
extern {
5859
pub fn __error() -> *mut ::c_int;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ pub const EBADMSG: ::c_int = 89;
307307
pub const EMULTIHOP: ::c_int = 90;
308308
pub const ENOLINK: ::c_int = 91;
309309
pub const EPROTO: ::c_int = 92;
310-
pub const ELAST: ::c_int = 96;
311310

312311
pub const F_DUPFD: ::c_int = 0;
313312
pub const F_GETFD: ::c_int = 1;

0 commit comments

Comments
 (0)