Skip to content

Commit e1c1345

Browse files
committed
Add GNU/Hurd support
1 parent f61a788 commit e1c1345

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
strategy:
7272
fail-fast: false
7373
matrix:
74-
target: ["armv7-sony-vita-newlibeabihf"]
74+
target: ["armv7-sony-vita-newlibeabihf", "i386-unknown-hurd-gnu"]
7575
steps:
7676
- uses: actions/checkout@v3
7777
- uses: dtolnay/rust-toolchain@nightly
@@ -108,7 +108,7 @@ jobs:
108108
strategy:
109109
fail-fast: false
110110
matrix:
111-
target: ["armv7-sony-vita-newlibeabihf"]
111+
target: ["armv7-sony-vita-newlibeabihf", "i386-unknown-hurd-gnu"]
112112
steps:
113113
- uses: actions/checkout@v3
114114
- uses: dtolnay/rust-toolchain@nightly # NOTE: need nightly for `doc_cfg` feature.

src/socket.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,7 @@ impl Socket {
13071307
#[cfg(not(any(
13081308
target_os = "dragonfly",
13091309
target_os = "haiku",
1310+
target_os = "hurd",
13101311
target_os = "netbsd",
13111312
target_os = "openbsd",
13121313
target_os = "redox",
@@ -1344,6 +1345,7 @@ impl Socket {
13441345
#[cfg(not(any(
13451346
target_os = "dragonfly",
13461347
target_os = "haiku",
1348+
target_os = "hurd",
13471349
target_os = "netbsd",
13481350
target_os = "openbsd",
13491351
target_os = "redox",
@@ -1521,6 +1523,7 @@ impl Socket {
15211523
target_os = "aix",
15221524
target_os = "dragonfly",
15231525
target_os = "fuchsia",
1526+
target_os = "hurd",
15241527
target_os = "illumos",
15251528
target_os = "netbsd",
15261529
target_os = "openbsd",
@@ -1551,6 +1554,7 @@ impl Socket {
15511554
target_os = "aix",
15521555
target_os = "dragonfly",
15531556
target_os = "fuchsia",
1557+
target_os = "hurd",
15541558
target_os = "illumos",
15551559
target_os = "netbsd",
15561560
target_os = "openbsd",

src/sys/unix.rs

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub(crate) use libc::ipv6_mreq as Ipv6Mreq;
121121
#[cfg(not(any(
122122
target_os = "dragonfly",
123123
target_os = "fuchsia",
124+
target_os = "hurd",
124125
target_os = "illumos",
125126
target_os = "netbsd",
126127
target_os = "openbsd",
@@ -179,6 +180,7 @@ pub(crate) use libc::{
179180
#[cfg(not(any(
180181
target_os = "dragonfly",
181182
target_os = "haiku",
183+
target_os = "hurd",
182184
target_os = "netbsd",
183185
target_os = "openbsd",
184186
target_os = "redox",
@@ -329,6 +331,7 @@ type IovLen = usize;
329331
target_os = "freebsd",
330332
target_os = "fuchsia",
331333
target_os = "haiku",
334+
target_os = "hurd",
332335
target_os = "illumos",
333336
target_os = "ios",
334337
target_os = "macos",

0 commit comments

Comments
 (0)