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 @@ -998,6 +998,13 @@ fn test_solarish(target: &str) {
998998 cfg. define ( "__EXTENSIONS__" , None ) ;
999999 cfg. define ( "_LCONV_C99" , None ) ;
10001000
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+
10011008 headers ! {
10021009 cfg:
10031010 "aio.h" ,
Original file line number Diff line number Diff line change @@ -161,6 +161,14 @@ cfg_if! {
161161 }
162162}
163163
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+
164172pub const _UTMP_USER_LEN: usize = 32 ;
165173pub const _UTMP_LINE_LEN: usize = 32 ;
166174pub const _UTMP_ID_LEN: usize = 4 ;
You can’t perform that action at this time.
0 commit comments