Skip to content

Commit 1f49e1d

Browse files
committed
SCTP support for FreeBSD, NetBSD
Notification and log `union` types are exposed as partially-opaque structs for now, until libc targets a version of Rust which supports unions.
1 parent 0a52819 commit 1f49e1d

File tree

3 files changed

+2001
-2
lines changed

3 files changed

+2001
-2
lines changed

libc-test/build.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,12 @@ fn main() {
244244
if linux || android {
245245
cfg.header("sys/fsuid.h");
246246

247-
// DCCP support
248247
if !uclibc && !musl && !emscripten {
248+
// DCCP support
249249
cfg.header("linux/dccp.h");
250+
251+
// SCTP support
252+
//cfg.header("netinet/sctp.h");
250253
}
251254
}
252255

@@ -258,6 +261,9 @@ fn main() {
258261
cfg.header("sys/ipc.h");
259262
cfg.header("sys/msg.h");
260263
cfg.header("sys/shm.h");
264+
265+
// SCTP support
266+
cfg.header("netinet/sctp.h");
261267
}
262268

263269
if netbsd {
@@ -267,6 +273,9 @@ fn main() {
267273

268274
// DCCP support
269275
cfg.header("netinet/dccp.h");
276+
277+
// SCTP support
278+
cfg.header("netinet/sctp.h");
270279
}
271280

272281
if openbsd {

0 commit comments

Comments
 (0)