Skip to content

Commit cddc338

Browse files
committed
Merge branch 'fix-build-freebsd' into update-freebsd-ci-image
2 parents c1fa4b6 + be2f062 commit cddc338

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ fn main() {
509509
"CTL_MAXID" |
510510
"KERN_MAXID" |
511511
"HW_MAXID" |
512+
"NET_MAXID" |
512513
"USER_MAXID" if freebsd => true,
513514

514515
// These constants were added in FreeBSD 11

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

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pub type clock_t = i32;
33
pub type ino_t = u32;
44
pub type lwpid_t = i32;
55
pub type nlink_t = u16;
6-
pub type blksize_t = u32;
6+
pub type blksize_t = i32;
77
pub type clockid_t = ::c_int;
88
pub type sem_t = _sem;
99

@@ -182,7 +182,9 @@ pub const EOWNERDEAD: ::c_int = 96;
182182
pub const ELAST: ::c_int = 96;
183183
pub const RLIMIT_NPTS: ::c_int = 11;
184184
pub const RLIMIT_SWAP: ::c_int = 12;
185-
pub const RLIM_NLIMITS: ::rlim_t = 13;
185+
pub const RLIMIT_KQUEUES: ::c_int = 13;
186+
pub const RLIMIT_UMTXP: ::c_int = 14;
187+
pub const RLIM_NLIMITS: ::rlim_t = 15;
186188

187189
pub const Q_GETQUOTA: ::c_int = 0x700;
188190
pub const Q_SETQUOTA: ::c_int = 0x800;
@@ -801,10 +803,10 @@ pub const SHUTDOWN_TIME: ::c_short = 8;
801803

802804
pub const LC_COLLATE_MASK: ::c_int = (1 << 0);
803805
pub const LC_CTYPE_MASK: ::c_int = (1 << 1);
804-
pub const LC_MESSAGES_MASK: ::c_int = (1 << 2);
805-
pub const LC_MONETARY_MASK: ::c_int = (1 << 3);
806-
pub const LC_NUMERIC_MASK: ::c_int = (1 << 4);
807-
pub const LC_TIME_MASK: ::c_int = (1 << 5);
806+
pub const LC_MONETARY_MASK: ::c_int =(1 << 2);
807+
pub const LC_NUMERIC_MASK: ::c_int = (1 << 3);
808+
pub const LC_TIME_MASK: ::c_int = (1 << 4);
809+
pub const LC_MESSAGES_MASK: ::c_int = (1 << 5);
808810
pub const LC_ALL_MASK: ::c_int = LC_COLLATE_MASK
809811
| LC_CTYPE_MASK
810812
| LC_MESSAGES_MASK

0 commit comments

Comments
 (0)