File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1049,6 +1049,13 @@ fn test_solarish(target: &str) {
1049
1049
cfg. define ( "__EXTENSIONS__" , None ) ;
1050
1050
cfg. define ( "_LCONV_C99" , None ) ;
1051
1051
1052
+ // FIXME(solaris): This should be removed once new Nix crate is released.
1053
+ // See comment in src/unix/solarish/solaris.rs for these.
1054
+ if is_solaris {
1055
+ cfg. define ( "O_DIRECT" , Some ( "0x2000000" ) ) ;
1056
+ cfg. define ( "SIGINFO" , Some ( "41" ) ) ;
1057
+ }
1058
+
1052
1059
headers ! {
1053
1060
cfg:
1054
1061
"aio.h" ,
Original file line number Diff line number Diff line change @@ -161,6 +161,14 @@ cfg_if! {
161
161
}
162
162
}
163
163
164
+ // FIXME(solaris): O_DIRECT and SIGINFO are NOT available on Solaris.
165
+ // But in past they were defined here and thus other crates expected them.
166
+ // Latest version v0.29.0 of Nix crate still expects this. Since last
167
+ // version of Nix crate is almost one year ago let's define these two
168
+ // temporarily before new Nix version is released.
169
+ pub const O_DIRECT : c_int = 0x2000000 ;
170
+ pub const SIGINFO : c_int = 41 ;
171
+
164
172
pub const _UTMP_USER_LEN: usize = 32 ;
165
173
pub const _UTMP_LINE_LEN: usize = 32 ;
166
174
pub const _UTMP_ID_LEN: usize = 4 ;
You can’t perform that action at this time.
0 commit comments