Skip to content

Commit fed5769

Browse files
committed
Add support for QNX Neutrino 7.1
1 parent 89b4976 commit fed5769

17 files changed

+786
-226
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ The following targets are supported by `nix`:
8989
<li>x86_64-unknown-netbsd</li>
9090
</td>
9191
<td>
92+
<li>aarch64-unknown-nto-qnx710</li>
9293
<li>armv7-unknown-linux-uclibceabihf</li>
9394
<li>x86_64-fuchsia</li>
9495
<li>x86_64-unknown-dragonfly</li>
9596
<li>x86_64-unknown-haiku</li>
9697
<li>x86_64-unknown-linux-gnux32</li>
9798
<li>x86_64-unknown-openbsd</li>
9899
<li>x86_64-unknown-redox</li>
100+
<li>x86_64-pc-nto-qnx710</li>
99101
</td>
100102
</tr>
101103
</table>

src/dir.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ impl Entry {
230230
target_os = "l4re",
231231
target_os = "linux",
232232
target_os = "macos",
233-
target_os = "solaris"))] {
233+
target_os = "solaris",
234+
target_os = "nto",
235+
))] {
234236
self.0.d_ino as u64
235237
} else {
236238
u64::from(self.0.d_fileno)
@@ -252,7 +254,8 @@ impl Entry {
252254
#[cfg(not(any(
253255
target_os = "illumos",
254256
target_os = "solaris",
255-
target_os = "haiku"
257+
target_os = "haiku",
258+
target_os = "nto",
256259
)))]
257260
match self.0.d_type {
258261
libc::DT_FIFO => Some(Type::Fifo),
@@ -269,7 +272,8 @@ impl Entry {
269272
#[cfg(any(
270273
target_os = "illumos",
271274
target_os = "solaris",
272-
target_os = "haiku"
275+
target_os = "haiku",
276+
target_os = "nto",
273277
))]
274278
None
275279
}

0 commit comments

Comments
 (0)