We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 635f0ae commit cc2f5aaCopy full SHA for cc2f5aa
src/unix/mod.rs
@@ -314,9 +314,19 @@ pub const ATF_PUBL: ::c_int = 0x08;
314
pub const ATF_USETRAILERS: ::c_int = 0x10;
315
316
pub const FNM_PERIOD: c_int = 1 << 2;
317
-pub const FNM_CASEFOLD: c_int = 1 << 4;
318
pub const FNM_NOMATCH: c_int = 1;
319
+cfg_if! {
320
+ if #[cfg(any(
321
+ target_os = "illumos",
322
+ target_os = "solaris",
323
+ ))] {
324
+ pub const FNM_CASEFOLD: c_int = 1 << 3;
325
+ } else {
326
+ pub const FNM_CASEFOLD: c_int = 1 << 4;
327
+ }
328
+}
329
+
330
cfg_if! {
331
if #[cfg(any(
332
target_os = "macos",
0 commit comments