Skip to content

Commit f16544e

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 e4f8ab8 commit f16544e

File tree

3 files changed

+2003
-2
lines changed

3 files changed

+2003
-2
lines changed

libc-test/build.rs

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

242242
if linux || android {
243-
// DCCP support
244243
if !uclibc && !musl && !emscripten {
244+
// DCCP support
245245
cfg.header("linux/dccp.h");
246+
247+
// SCTP support
248+
cfg.header("netinet/sctp.h");
246249
}
247250
}
248251

@@ -254,6 +257,9 @@ fn main() {
254257
cfg.header("sys/ipc.h");
255258
cfg.header("sys/msg.h");
256259
cfg.header("sys/shm.h");
260+
261+
// SCTP support
262+
cfg.header("netinet/sctp.h");
257263
}
258264

259265
if netbsd {
@@ -263,6 +269,9 @@ fn main() {
263269

264270
// DCCP support
265271
cfg.header("netinet/dccp.h");
272+
273+
// SCTP support
274+
cfg.header("netinet/sctp.h");
266275
}
267276

268277
if openbsd {

0 commit comments

Comments
 (0)