File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -787,11 +787,25 @@ impl File {
787
787
unsafe fn os_datasync ( fd : c_int ) -> c_int {
788
788
libc:: fcntl ( fd, libc:: F_FULLFSYNC )
789
789
}
790
- #[ cfg( target_os = "linux" ) ]
790
+ #[ cfg( any(
791
+ target_os = "freebsd" ,
792
+ target_os = "linux" ,
793
+ target_os = "android" ,
794
+ target_os = "netbsd" ,
795
+ target_os = "openbsd"
796
+ ) ) ]
791
797
unsafe fn os_datasync ( fd : c_int ) -> c_int {
792
798
libc:: fdatasync ( fd)
793
799
}
794
- #[ cfg( not( any( target_os = "macos" , target_os = "ios" , target_os = "linux" ) ) ) ]
800
+ #[ cfg( not( any(
801
+ target_os = "android" ,
802
+ target_os = "freebsd" ,
803
+ target_os = "ios" ,
804
+ target_os = "linux" ,
805
+ target_os = "macos" ,
806
+ target_os = "netbsd" ,
807
+ target_os = "openbsd"
808
+ ) ) ) ]
795
809
unsafe fn os_datasync ( fd : c_int ) -> c_int {
796
810
libc:: fsync ( fd)
797
811
}
You can’t perform that action at this time.
0 commit comments