File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -998,6 +998,13 @@ fn test_solarish(target: &str) {
998
998
cfg. define ( "__EXTENSIONS__" , None ) ;
999
999
cfg. define ( "_LCONV_C99" , None ) ;
1000
1000
1001
+ // FIXME(solaris): This should be removed once new Nix crate is released.
1002
+ // See comment in src/unix/solarish/solaris.rs for these.
1003
+ if is_solaris {
1004
+ cfg. define ( "O_DIRECT" , Some ( "0x2000000" ) ) ;
1005
+ cfg. define ( "SIGINFO" , Some ( "41" ) ) ;
1006
+ }
1007
+
1001
1008
headers ! {
1002
1009
cfg:
1003
1010
"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