Skip to content

Commit 8f85fdb

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 84da91c commit 8f85fdb

File tree

3 files changed

+2009
-2
lines changed

3 files changed

+2009
-2
lines changed

libc-test/build.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,12 @@ fn main() {
241241
}
242242

243243
if linux || android {
244-
// DCCP support
245244
if !uclibc && !musl && !emscripten {
245+
// DCCP support
246246
cfg.header("linux/dccp.h");
247+
248+
// SCTP support
249+
//cfg.header("netinet/sctp.h");
247250
}
248251
}
249252

@@ -255,6 +258,9 @@ fn main() {
255258
cfg.header("sys/ipc.h");
256259
cfg.header("sys/msg.h");
257260
cfg.header("sys/shm.h");
261+
262+
// SCTP support
263+
cfg.header("netinet/sctp.h");
258264
}
259265

260266
if netbsd {
@@ -264,6 +270,9 @@ fn main() {
264270

265271
// DCCP support
266272
cfg.header("netinet/dccp.h");
273+
274+
// SCTP support
275+
cfg.header("netinet/sctp.h");
267276
}
268277

269278
if openbsd {

0 commit comments

Comments
 (0)