Skip to content

Commit f4d6c9d

Browse files
committed
Fix RAND_MAX for DragonFly
1 parent ba48336 commit f4d6c9d

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
@@ -59,6 +59,7 @@ pub type uuid_t = ::uuid;
5959
pub type fsblkcnt_t = u64;
6060
pub type fsfilcnt_t = u64;
6161

62+
pub const RAND_MAX: ::c_int = 0x7fff_ffff;
6263
pub const PTHREAD_STACK_MIN: ::size_t = 1024;
6364
pub const KERN_PROC_PATHNAME: ::c_int = 9;
6465
pub const SIGSTKSZ: ::size_t = 40960;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ s! {
4242
pub type fsblkcnt_t = ::uint64_t;
4343
pub type fsfilcnt_t = ::uint64_t;
4444

45+
pub const RAND_MAX: ::c_int = 0x7fff_fffd;
4546
pub const PTHREAD_STACK_MIN: ::size_t = 2048;
4647
pub const KERN_PROC_PATHNAME: ::c_int = 12;
4748
pub const SIGSTKSZ: ::size_t = 34816;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ s! {
125125

126126
pub const EXIT_FAILURE: ::c_int = 1;
127127
pub const EXIT_SUCCESS: ::c_int = 0;
128-
pub const RAND_MAX: ::c_int = 0x7fff_fffd;
129128
pub const EOF: ::c_int = -1;
130129
pub const SEEK_SET: ::c_int = 0;
131130
pub const SEEK_CUR: ::c_int = 1;

0 commit comments

Comments
 (0)