Skip to content

Commit 4a322b5

Browse files
committed
remove O_RSYNC
1 parent 8ab84c2 commit 4a322b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm/src/stdlib/os.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,6 @@ pub fn make_module(vm: &VirtualMachine) -> PyObjectRef {
12251225
#[cfg(unix)]
12261226
fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) -> PyObjectRef {
12271227
let ctx = &vm.ctx;
1228-
12291228
extend_module!(vm, module, {
12301229
"getppid" => ctx.new_rustfunc(os_getppid),
12311230
"getgid" => ctx.new_rustfunc(os_getgid),
@@ -1238,7 +1237,7 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) ->
12381237
"setuid" => ctx.new_rustfunc(os_setuid),
12391238
"access" => ctx.new_rustfunc(os_access),
12401239
"O_DSYNC" => ctx.new_int(libc::O_DSYNC),
1241-
"O_RSYNC" => ctx.new_int(libc::O_RSYNC),
1240+
"O_RSYNC" => ctx.new_int(1052672),
12421241
"O_NDELAY" => ctx.new_int(libc::O_NDELAY),
12431242
"O_NOCTTY" => ctx.new_int(libc::O_NOCTTY),
12441243
"O_CLOEXEC" => ctx.new_int(libc::O_CLOEXEC),

0 commit comments

Comments
 (0)