File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1217,9 +1217,7 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) ->
1217
1217
"ttyname" => ctx. new_rustfunc( os_ttyname) ,
1218
1218
"SEEK_SET" => ctx. new_int( Whence :: SeekSet as i8 ) ,
1219
1219
"SEEK_CUR" => ctx. new_int( Whence :: SeekCur as i8 ) ,
1220
- "SEEK_END" => ctx. new_int( Whence :: SeekEnd as i8 ) ,
1221
- "SEEK_DATA" => ctx. new_int( Whence :: SeekData as i8 ) ,
1222
- "SEEK_HOLE" => ctx. new_int( Whence :: SeekHole as i8 )
1220
+ "SEEK_END" => ctx. new_int( Whence :: SeekEnd as i8 )
1223
1221
} ) ;
1224
1222
1225
1223
#[ cfg( not( target_os = "redox" ) ) ]
@@ -1231,6 +1229,12 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) ->
1231
1229
"openpty" => ctx. new_rustfunc( os_openpty) ,
1232
1230
} ) ;
1233
1231
1232
+ #[ cfg( not( target_os = "macos" ) ) ]
1233
+ extend_module ! ( vm, module, {
1234
+ "SEEK_DATA" => ctx. new_int( Whence :: SeekData as i8 ) ,
1235
+ "SEEK_HOLE" => ctx. new_int( Whence :: SeekHole as i8 )
1236
+ } ) ;
1237
+
1234
1238
module
1235
1239
}
1236
1240
You can’t perform that action at this time.
0 commit comments