We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8d7c4e + 98a20b3 commit 0a3b786Copy full SHA for 0a3b786
src/unix/mod.rs
@@ -321,9 +321,19 @@ pub const ATF_PUBL: ::c_int = 0x08;
321
pub const ATF_USETRAILERS: ::c_int = 0x10;
322
323
pub const FNM_PERIOD: c_int = 1 << 2;
324
-pub const FNM_CASEFOLD: c_int = 1 << 4;
325
pub const FNM_NOMATCH: c_int = 1;
326
+cfg_if! {
327
+ if #[cfg(any(
328
+ target_os = "illumos",
329
+ target_os = "solaris",
330
+ ))] {
331
+ pub const FNM_CASEFOLD: c_int = 1 << 3;
332
+ } else {
333
+ pub const FNM_CASEFOLD: c_int = 1 << 4;
334
+ }
335
+}
336
+
337
cfg_if! {
338
if #[cfg(any(
339
target_os = "macos",
0 commit comments