Skip to content

Commit e5958b8

Browse files
committed
NetBSD: Fix the values of FNM_* constants
Link: https://github.com/NetBSD/src/blob/908770859a5d5141adc63c7844190d01db8a18a4/include/fnmatch.h#L43-L48 (backport <#4782>) (cherry picked from commit cfb674c)
1 parent 423d634 commit e5958b8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/unix/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,11 @@ cfg_if! {
351351
pub const FNM_NOMATCH: c_int = 1;
352352

353353
cfg_if! {
354-
if #[cfg(any(target_os = "illumos", target_os = "solaris",))] {
354+
if #[cfg(any(
355+
target_os = "illumos",
356+
target_os = "solaris",
357+
target_os = "netbsd"
358+
))] {
355359
pub const FNM_CASEFOLD: c_int = 1 << 3;
356360
} else if #[cfg(not(target_os = "aix"))] {
357361
pub const FNM_CASEFOLD: c_int = 1 << 4;
@@ -365,6 +369,7 @@ cfg_if! {
365369
target_os = "android",
366370
target_os = "openbsd",
367371
target_os = "cygwin",
372+
target_os = "netbsd",
368373
))] {
369374
pub const FNM_PATHNAME: c_int = 1 << 1;
370375
} else {
@@ -378,6 +383,7 @@ cfg_if! {
378383
target_os = "freebsd",
379384
target_os = "android",
380385
target_os = "openbsd",
386+
target_os = "netbsd",
381387
))] {
382388
pub const FNM_NOESCAPE: c_int = 1 << 0;
383389
} else if #[cfg(target_os = "nto")] {

0 commit comments

Comments
 (0)