@@ -103,13 +103,13 @@ s! {
103
103
104
104
pub struct sched_param {
105
105
pub sched_priority: :: c_int,
106
- #[ cfg( any( target_env = "musl" ) ) ]
106
+ #[ cfg( any( target_env = "musl" , target_os = "emscripten" ) ) ]
107
107
pub sched_ss_low_priority: :: c_int,
108
- #[ cfg( any( target_env = "musl" ) ) ]
108
+ #[ cfg( any( target_env = "musl" , target_os = "emscripten" ) ) ]
109
109
pub sched_ss_repl_period: :: timespec,
110
- #[ cfg( any( target_env = "musl" ) ) ]
110
+ #[ cfg( any( target_env = "musl" , target_os = "emscripten" ) ) ]
111
111
pub sched_ss_init_budget: :: timespec,
112
- #[ cfg( any( target_env = "musl" ) ) ]
112
+ #[ cfg( any( target_env = "musl" , target_os = "emscripten" ) ) ]
113
113
pub sched_ss_max_repl: :: c_int,
114
114
}
115
115
@@ -255,6 +255,10 @@ pub const RUSAGE_SELF: ::c_int = 0;
255
255
pub const O_RDONLY : :: c_int = 0 ;
256
256
pub const O_WRONLY : :: c_int = 1 ;
257
257
pub const O_RDWR : :: c_int = 2 ;
258
+
259
+ #[ cfg( target_os = "emscripten" ) ]
260
+ pub const O_TMPFILE : :: c_int = 0o20000000 ;
261
+ #[ cfg( not( target_os = "emscripten" ) ) ]
258
262
pub const O_TMPFILE : :: c_int = 0o20000000 | O_DIRECTORY ;
259
263
260
264
pub const SOCK_CLOEXEC : :: c_int = O_CLOEXEC ;
0 commit comments