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 @@ -752,11 +752,25 @@ impl File {
752
752
unsafe fn os_datasync ( fd : c_int ) -> c_int {
753
753
libc:: fcntl ( fd, libc:: F_FULLFSYNC )
754
754
}
755
- #[ cfg( target_os = "linux" ) ]
755
+ #[ cfg( any(
756
+ target_os = "freebsd" ,
757
+ target_os = "linux" ,
758
+ target_os = "android" ,
759
+ target_os = "netbsd" ,
760
+ target_os = "openbsd"
761
+ ) ) ]
756
762
unsafe fn os_datasync ( fd : c_int ) -> c_int {
757
763
libc:: fdatasync ( fd)
758
764
}
759
- #[ cfg( not( any( target_os = "macos" , target_os = "ios" , target_os = "linux" ) ) ) ]
765
+ #[ cfg( not( any(
766
+ target_os = "android" ,
767
+ target_os = "freebsd" ,
768
+ target_os = "ios" ,
769
+ target_os = "linux" ,
770
+ target_os = "macos" ,
771
+ target_os = "netbsd" ,
772
+ target_os = "openbsd"
773
+ ) ) ) ]
760
774
unsafe fn os_datasync ( fd : c_int ) -> c_int {
761
775
libc:: fsync ( fd)
762
776
}
You can’t perform that action at this time.
0 commit comments